-
Notifications
You must be signed in to change notification settings - Fork 0
Git tips
oxivanisher edited this page Apr 22, 2011
·
2 revisions
- [https://github.com/signup/free https://github.com/signup/free] (leave the ssh key field blank)
git config --global user.name "Your Name"
git config --global user.email [email protected]
- create your ssh keys if you dont have them: ssh-keygen -t rsa -C "[email protected]"
- login and click on "Account Settings"
- open the "SSH Public Key" tab
- cat $HOME/.ssh/sshkey.pub #and copy the content in the textfield and add your key, as title choos what ever you like
git checkout HEAD~2
#minus 2 commits
git log
git checkout HEAD
#back to master
git log