xxxxxxxxxx
# workflow, step by step:
git checkout srcBranch # where new branch will be created from
git branch newBranch # newBranch is created from srcBranch
git checkout newBranch # switch from srcBranch to newBranch
# in a single line:
git checkout -b newBranch srcBranch
git checkout -b newBranch # srcBranch is optional if already checked out
xxxxxxxxxx
// Go first to the branch where you want to make a copy of
git checkout -b subbranch branch
xxxxxxxxxx
git checkout sprint
git pull
git checkout -b rapportages sprint
git push origin rapportages
git push --set-upstream origin rapportages
xxxxxxxxxx
# To create a branch in Git from another branch, you
# can use the following command:
git checkout -b <new_branch> <old_branch>
# Here, <new_branch> is the name of the new branch you
# want to create, and <old_branch> is the name of
# the branch you want to branch off from 12345.
# For instance, if you want to create a new branch called
# feature from the dev branch, you can use the following command:
git checkout -b feature dev
# This will create a new branch called feature and switch to it.
# You can then make changes to this branch and commit them as usual.