# 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. ``` JSON "git.pullBeforeCheckout": true ``` ## References => https://code.visualstudio.com/updates/v1_72#_pull-before-checkout Pull Before Checkout | September 2022 Update => https://git-scm.com/docs/git-checkout checkout | Git Documentation => https://git-scm.com/docs/git-pull pull | Git Documentation => https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging "fast-forward" | Basic Branching and Merging | Git Book => https://git-scm.com/docs/git-merge#_fast_forward_merge "fast-forward" | merge | Git Documentation Created: Sunday, October 16, 2022 Updated: Sunday, October 16, 2022