Git, the distributed revision-control system that’s become the default tool for source code control in the open source world, turns 13 on April 7. One of the more frustrating things about using Git is how much you need to know to use it effectively. This can also be one of the more awesome things about using Git, because there’s nothing quite like discovering a new tip or trick that can streamline or improve your workflow.
In honor of Git’s 13th birthday, here are 13 tips and tricks to make your Git experience more useful and powerful, starting with some basics you might have overlooked and scaling up to some real power-user tricks!
The first time you tried to use the
git command to commit a change to a repository, you might have been greeted with something like this:
*** Please tell me who you are. Run git config --global user.email "email@example.com" git config --global user.name "Your Name" to set your account's default identity.
What you might not have realized is that those commands are modifying the contents of
~/.gitconfig, which is where Git stores global configuration options.
Read more at OpenSource.com