To move the branch pointer of a checked out branch, one can use the git reset --hard
command.
(要移动已签出分支的分支指针,可以使用git reset --hard
命令。)
But how to move the branch pointer of a not-checked out branch to point at a different commit (keeping all other stuff like tracked remote branch)? (但是如何移动未检出分支的分支指针指向不同的提交(保留所有其他东西,如跟踪的远程分支)?)
ask by Mot translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…