Sunday, January 31, 2021

Git create feature branch

 1. checkout the branch from which you want to create feature branch

git checkout  <existing branch>

2. create feature branch and checkout feature branch in one step

git checkout  -b  <feature branch name>

3. change the code in feature branch and commit to remote repository.

git  add  -A

git commit  -m  "update"

git  push origin  <feature branch name>

New feature branch committed to remote.

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home