Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Wednesday, January 12, 2011

git

git diff
find the different between local and server.

git diff .
find the different between . and server.

git reset --hard
all the changes are lost.

git reset --hard HEAD~2
reset to previous 2 commit

git reset --hard
reset to commit-id

git pull
sync code

git branch -f
change branch

git checkout
check out