Answers for "how to commit to main branch in git"

44

git command to create a branch

//Create a New Branch
git checkout -b [name_of_your_new_branch]
//First Push
git push --set-upstream origin [name_of_your_new_branch]
Posted by: Guest on May-02-2020
1

how to commit to main branch in git

git checkout -b your-new-branch
git add <files>
git commit -m <message>
Posted by: Guest on July-24-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language