📜  你不在的 git pull 分支 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:47.813000             🧑  作者: Mango

代码示例1
# Merge local branch foo into local branch master,
# without having to checkout master first.
# Here `.` means to use the local repository as the "remote":
git fetch . foo:master

# Merge remote branch origin/foo into local branch foo,
# without having to checkout foo first:
git fetch origin foo:foo