I am putting together a workflow where my team will be pulling and rebasing from the upstream repository after submitting a Pull Request and having it be merged. We are not using branching1, and so I would like to have instructions available for pulling in the lastest upstream master. However, VSCode only lets me pull from a specific remote and branch (thus producing an unwanted merge commit), or pull + rebase from origin/master, which is also undesirable because the point is that pulling from upstream/master is the goal.


I'm settling for enforcing a workflow that does make use of branches, and uses the Git CLI when necessary, because Visual Studio Code does not offer all of the Git commands directly. In particular, I'm using the option in VSCode to set the default terminal to Git Bash, and having my team toggle the integrated terminal. My final instructions look like:
git rebase upstream/master.To rebase the branch using VSCode, you can:


If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With