GIT: Useful commands

Some useful commands to begin with:

Ignoring changes (ie. autogenerated):

$ git update-index --assume-unchanged $(git ls-files po m4)

Create and switch to new branch:

$ git checkout -b new_branch

Switch to another branch:

$ git checkout master

Branch list:

$ git branch

Change default log editor:

$ git config --global core.editor pico

Leave a Reply

Your email address will not be published. Required fields are marked *