Resetting changes

Sometimes I have made an upgrade to a set of files which include adding new files and I want to undo all modifications to files and remove all new files. The following command help:

git reset

After running this command I have noticed there could be some files left over that are not under git control. Instead of removing these files manually, I found the following command to help with clearing them out:

git clear -fd

Listing branches or tags

To get a listing of the branches or tags you can use these commands:

git tag -l
git branch -a
comments powered by Disqus