Wednesday, 30 August 2017

git cheat sheet



basic git command



  • git init (creates git skeleton)
    • git add . (will add all the modified files for the branch) 
  • git commit -m "xx"
  • git push
  • git pull
  • git tag (list out the tags)
  • git tag -a 1.0.0 -m "testing publ" (git add tag)
  • git push --tags (push all the tags help-full for event tag on CI tools )
  • git branch -b "new branch name"
  • git push --set-upstream origin <new branch>
  • git checkout "branch name"


No comments:

Prasanta Kumar Behera. Mob- 8147470101