Can “git pull --all” update all my local branches?

前端 未结 25 2128
失恋的感觉
失恋的感觉 2020-11-22 16:33

I often have at least 3 remote branches: master, staging and production. I have 3 local branches that track those remote branches.

Updating all my local branches is

相关标签:
25条回答
  • 2020-11-22 17:38

    As of git 2.9:

    git pull --rebase --autostash

    See https://git-scm.com/docs/git-rebase

    Automatically create a temporary stash before the operation begins, and apply it after the operation ends. This means that you can run rebase on a dirty worktree. However, use with care: the final stash application after a successful rebase might result in non-trivial conflicts.

    0 讨论(0)
提交回复
热议问题