branch inside branch git code example

Example 1: can i create a branch inside of another branch in GIT

$ git checkout -b myFeature dev

Example 2: can i create a branch inside of another branch in GIT

$ git push origin dev
$ git push origin myFeature

Example 3: can i create a branch inside of another branch in GIT

$ git checkout dev
$ git merge --no-ff myFeature

Example 4: git branch inside branch

git checkout -b newBranch branch
git push -u origin newBranch

Example 5: can i create a branch inside of another branch in GIT

$ git commit -am "Your message"

Tags:

Php Example