Tuesday, 26 January 2021

Steps for creating new branch using git bash

Step 1: Run below command to create new branch. here i am creating new branch QAReady_xxxx out of QAReady you can replace branch names as required. git checkout -b QAReady_xxxx QAReady

Step 2: Your branch is now created and is local to you. Please checkout new branch git checkout QAReady_xxxx
Step 3: Setup and Upstream branch so that you could push your changes to remote git branch --set-upstream-to=origin/QAReady_pdxxxx QAReady_pdxxxx
Step 4: Now you are all set. You can edit/create files. commit and push it to remote.

No comments:

Post a Comment