GIT EXPERIENCE

You are viewing an old version (v. 7) 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 >>

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: svn project as git repository

Checkout

> git svn clone <svn repo url>

Commit

> git svn dcommit

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"

How to: Convert from Subversion to Git

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.