Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有五个超然的提交。我不能--set-upstream,因为我不在分支上。我是否需要签出一个新的分支,然后单独挑选并提交所有五个分支?
--set-upstream
罗斯,看起来你可以做一个新的分支
If you want to keep them by creating a new branch, this may be a good time to do so with: git branch new_branch_name <SHA of fifth commit>