git quick ref

June 12, 2008


I’m publishing this for my own future reference. A short usage guide on git for an ex-svn addict.

goal client server
init .git repo git init git init
start remote repo git clone ssh://server
add a file git add $file git add $file
commit the file git commit -a -m"log" git commit -a -m"log"
upload to server git push origin master
import remote changes git reset --hard
get changes from server git pull