Popular Git commands

 



Here are some popular GIT commands


git checkout -b main - used to create and switch to a new branch

git push -u origin main - used to push code. main is the branch name here.

git remote add origin https://example.git - used to set origin