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.
GIT commands
Rashi Atry
(Naukri Quality)
WHAT IS GIT?
How do You use Git?
via Tools/ extensions OR command line?
Basic Commands
 git clone <.git url>
 git checkout
 git status
 git branch
 git add
 git pull
 git commit
 git pus...
git checkout
 git checkout
 git checkout <branchName>
 git checkout –b <newBranchName>
 git checkout <fileName>
git add
 git add
 git add –p
 git add –p <fileName>
git stash
 git stash
 git stash save
 git stash list
 git stash apply
 git stash drop
 git stash -p
git reset
 git reset - -hard HEAD
 git reset - - soft <any point hash>
More Commands
 git commit –m <commitMessage>
 git branch –m <newBranchName>
 git push origin <nameOfBranch>
Git Shortcuts
 git alias
 git config --global alias.ci commit
 git config --global alias.co checkout
 git config --glo...
Tip and Tricks
 Pull frequently
 Commit early and often
 Make logical commit messages
 Write understandable commit mes...
Thank you
You’ve finished this document.
Download and read it offline.
Upcoming SlideShare
[@NaukriEngineering] Virtual dom
Next
Upcoming SlideShare
[@NaukriEngineering] Virtual dom
Next
Download to read offline and view in fullscreen.

2

Share

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

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

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

    Jun. 12, 2019
  • DeepakThayat

    Mar. 9, 2017

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.

Views

Total views

1,506

On Slideshare

0

From embeds

0

Number of embeds

422

Actions

Downloads

13

Shares

0

Comments

0

Likes

2

×