Frequently Used Git Commands

Posted 9 months, 3 weeks ago
Frequently Used Git Commands

Creating a new branch in git


> git checkout branch-name



Switching to branch in git


> git switch branch-name


 


Create & immediately switch to a newly created branch in git


> git checkout -b branch-name



Checking the current branch name in Git


git branch --show-current