Skip to content
oxivanisher edited this page Apr 22, 2011 · 2 revisions

GitHub

create account

  • [https://github.com/signup/free https://github.com/signup/free] (leave the ssh key field blank)

setup your local git

 git config --global user.name "Your Name"
 git config --global user.email [email protected]

add ssh keys (do it on each dev host) (for linux and osx only)

  • 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

Rollback

git checkout HEAD~2
#minus 2 commits

git log

git checkout HEAD
#back to master

git log

Branches