Everything about using Git from the command line - from helpful tips and tricks to clever bash snippets.
How-Tos
Only clone a single branch
Change the author of a last commit in git
Update user email address in all commits
then
Using git-log to get repo stats
Copy all branches to a different repository
GitHub
Using multiple GitHub accounts with ssh keys
To use two separate GitHub accounts with two different ssh keys on the same computer, you can define host aliases in ./ssh/config to distinguish them.
Add ssh private keys to your ssh agent as usual:
Test connections:
You should see something like this:
Hi lwkz! You've successfully authenticated, but GitHub does not provide shell access.
Hi news-liwenkz! You've successfully authenticated, but GitHub does not provide shell access.
Clone your repositories using aliases defined earlier: