Saturday, 18 September 2021

CheatVid: Git Commands (CLI Commands With Short Description)




The following git commands are covered in this simple video linked below:




  • git config --global user.name “[firstname lastname]”
  • git config --global user.email “[valid-email]”
  • git config --global color.ui auto
  • git init
  • git clone [url]

  • git status
  • git add [file] 
  • git reset [file] 
  • git diff
  • git diff --staged 
  • git commit -m “[descriptive message]” 

  • git branch 
  • git branch [branch-name] 
  • git checkout 
  • git merge [branch] 
  • git log 

  • git log 
  • git log branchB..branchA 
  • git log --follow [file] 
  • git diff branchB...branch
  • git show [SHA] 

  • git rm [file] 
  • git mv [existing-path] [new-path] 
  • git log --stat -M 


No comments:

Post a Comment

File: ESL4U

  m