Thursday, March 18, 2021

Git commands [Branching & Merging]

  1. cd to your working directory
  2. git log : see what commit has been made
  3. git branch [branch_name] : create a new branch
  4. git branch : list out all the branches (* shows you what branch you’re on)
  5. git checkout [branch_name] : switch branch
  6. git add .
  7. git commit  -m “[message]”
  8. git log
  9. git merge [branch_name] 
  10. git push origin [branch_name] -u



No comments:

Post a Comment