git & github
clone a repository to work on locally
git clone git://github.com/user/project.git
add a repository for pushing & pulling
git remote add <repo alias> git://github.com/user/project.git
see available repositories
git remote
pull changes from another repository
git pull <repo alias> <branch>
commit changes, auto-adding changed files
git commit -a -m “comment”
push changes to my repository
git push <repo (defaults to origin)> <branch (defaults to master)>
configure for github account
git config —global user.email <email>
other tidbits
- don’t need to set files to resolved once you resolve conflicts