Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

[@NaukriEngineering] Git Basic Commands and Hacks

1,340 views

Published on

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.

Published in: Engineering
  • Hi there! I just wanted to share a list of sites that helped me a lot during my studies: .................................................................................................................................... www.EssayWrite.best - Write an essay .................................................................................................................................... www.LitReview.xyz - Summary of books .................................................................................................................................... www.Coursework.best - Online coursework .................................................................................................................................... www.Dissertations.me - proquest dissertations .................................................................................................................................... www.ReMovie.club - Movies reviews .................................................................................................................................... www.WebSlides.vip - Best powerpoint presentations .................................................................................................................................... www.WritePaper.info - Write a research paper .................................................................................................................................... www.EddyHelp.com - Homework help online .................................................................................................................................... www.MyResumeHelp.net - Professional resume writing service .................................................................................................................................. www.HelpWriting.net - Help with writing any papers ......................................................................................................................................... Save so as not to lose
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

[@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

×