GIT hacks

  • Use the command below after modifying .gitignore and to remove tracking files already committed before git rm -r --cached .
  • List all the files currently being tracked under the branch master
    git ls-tree -r master --name-only
  • Print a decorated log of branches on command line git log --all --decorate --oneline --graph

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s