Git Pull Before Checkout

VS Code introduced a feature to synchronize before switching branches:

Pull before checkout

>

This milestone we added a new setting, git.pullBeforeCheckout, to streamline the process of switching branches. When this setting is enabled, if there are no outgoing commits, we will pull from the remote and fast-forward the branch before checking it out.
"git.pullBeforeCheckout": true

References

Pull Before Checkout | September 2022 Update
checkout | Git Documentation
pull | Git Documentation
"fast-forward" | Basic Branching and Merging | Git Book
"fast-forward" | merge | Git Documentation

Created: Sunday, October 16, 2022

Updated: Sunday, October 16, 2022