Git Tips'n'Trix


I have written a number of posts on various issues related to Git. This page serves the purpose as an easy reference to these hints for me and others. I will add more tips'n'tricks as I discover them.



Installing git-completion.bash on Mac OS X
Git Rebase Commands
How to remove deleted branch names from Git autocomplete

Remove Local Changes

If you want to remove local changes made to your working copy, do this:


git checkout .

Reference: Remove local changes

Remove Remote Branches

Get remote branch names:

git branch -a

Delete  remote branch:

git push -d origin <branchname>

Ingen kommentarer:

Send en kommentar

Bemærk! Kun medlemmer af denne blog kan sende kommentarer.