Stacked PRs #
This means a branch of a branch, which is useful when you want to work on a second feature depending on the first PR, while the first PR is still being reviewed.
# create a branch
git branch b1
git checkout b1
# do your code changes and commit them
# create a second branch
git branch b2
git checkout b2
# do your code changes and commit them
# print the branch status
git branch -vv
# make sure the first branch is pushed to github (or whatever your origin)
git push -u origin b1
# make sure the second branch is pushed to github (or whatever your origin)
git push -u origin b2
# this will print a link to create a PR on github.