Successfully reported this slideshow.
Your SlideShare is downloading. ×

[@NaukriEngineering] Git Basic Commands and Hacks

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Loading in …3
×

Check these out next

1 of 12 Ad

[@NaukriEngineering] Git Basic Commands and Hacks

Download to read offline

This presentation is not to explain why we use Git and the benefits of using Git over SVN.
But, it is about how to use the simplest and basic functionalities of Git. And small hacks to make our lives easy.

This presentation is not to explain why we use Git and the benefits of using Git over SVN.
But, it is about how to use the simplest and basic functionalities of Git. And small hacks to make our lives easy.

Advertisement
Advertisement

More Related Content

Viewers also liked (20)

Advertisement

More from Naukri.com (16)

Recently uploaded (20)

Advertisement

[@NaukriEngineering] Git Basic Commands and Hacks

  1. 1. GIT commands Rashi Atry (Naukri Quality)
  2. 2. WHAT IS GIT?
  3. 3. How do You use Git? via Tools/ extensions OR command line?
  4. 4. Basic Commands  git clone <.git url>  git checkout  git status  git branch  git add  git pull  git commit  git push  git stash
  5. 5. git checkout  git checkout  git checkout <branchName>  git checkout –b <newBranchName>  git checkout <fileName>
  6. 6. git add  git add  git add –p  git add –p <fileName>
  7. 7. git stash  git stash  git stash save  git stash list  git stash apply  git stash drop  git stash -p
  8. 8. git reset  git reset - -hard HEAD  git reset - - soft <any point hash>
  9. 9. More Commands  git commit –m <commitMessage>  git branch –m <newBranchName>  git push origin <nameOfBranch>
  10. 10. Git Shortcuts  git alias  git config --global alias.ci commit  git config --global alias.co checkout  git config --global alias.br branch  git config --global alias.st status
  11. 11. Tip and Tricks  Pull frequently  Commit early and often  Make logical commit messages  Write understandable commit messages  Push when your changes are tested  Branch freely  Merge carefully  Stash before switching branches  Stash with meaningful messages
  12. 12. Thank you

×