Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 449 Bytes

pull-fast-forward-another-branch.md

File metadata and controls

17 lines (12 loc) · 449 Bytes

Pull (fast forward) another branch

Pull upstream contents into a branch you are not currently on with:

git fetch <remote> otherbranch:otherbranch

For example, if you are on branch feature-a but your local master and staging branches have fallen behind:

git fetch origin master:master staging:staging

As a bonus tab-complete often works very well for this.

Courtesy of https://stackoverflow.com/a/55144971/4970