git quick ref

Posted in linux; comments: 0

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
Tags: linux

0 comments

Comments are closed

If you really, really want to comment, please mail miek@miek.nl.

0 comments in moderator queue