You are viewing an old version (v. 6) of this page.
The latest version is v. 63, last edited on Jun 15, 2019
(view differences
|
)
<< View previous version | view page history | view next version >>
<< View previous version | view page history | view next version >>
Table Of Contents
How to: Delete a remote Git tag
Probably you don’t need to do this often (if ever at all) but just in case, here is how to delete a tag from a remote Git repository.
If you have a tag named ‘mytag’ then you would just do this:
> git tag -d mytag > git push origin :refs/tags/mytag
That will remove ‘mytag’ from the remote repository (E.g Github).
How to: Checkout svn project as git repository
> git svn clone <svn repo url>
How to: Keeping a git fork in sync with the forked repo.
When you fork a git repo, probably you would like to keep in sync the forked repo with the original one. This is how I do it.
> git remote add <repo name> <git url>
Fetch
> git fetch <repo name>
This will create a branch, so then you just have to merge back:
> git checkout master > git merge <repo name>/master
Commit those new changes:
> git commit -a -m "Sync to fork master"