Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
# 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
You can use worktree. Technically, you still switch to the branch, but in a different directory. Your working directory will remain untouched.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question