Tuesday, April 24, 2012

Git useful commands

git pull origin

git push origin

git diff origin
clear

#see diff from master
 git diff master origin

 git status origin
 git show origin

 git diff origin --name-only

 git commit -m "commit description"

 Next line: d
 quit :q

discarding all uncommitted changes
git reset --hard

ignore file 
name: .gitignore
content: target
*.someextn
.abc

SVN:
Base lining:
svn cp ^/trunk ^/branches/NewBaseLine -m"- New Baseline"

No comments:

Post a Comment