支行的背後,是由產地通過5次提交。如何拉git的具體提交變基
[email protected][~/git/task](task-68↓3| ✓)$git status
# On branch task-68
# Your branch is behind 'origin/task-68' by 5 commits, and can be fast-forwarded.
#
nothing to commit, working directory clean
[email protected][~/git/task](desflow-68↓3| ✓)$
這些提交是A-> B-> C-> D-> E。我如何才能獲得與提交C到工作目錄相關的更改。
它試圖變基混帳-i但不會犯下的所有名單。它輸出以下信息。
noop
# Rebase 484a22b..b7fa802 onto 484a22b
#
# Commands:
# p, pick = use commit
# r, reword = use commit, but edit the commit message
# e, edit = use commit, but stop f
任何幫助表示讚賞。
如果你只是想拉一個單一提交,也許嘗試'櫻桃pick'? – jeremyharris
我試過,但它會再次上演這些變化犯,甚至unstaging後的變化,如果這種變化是在本地製造或櫻桃採摘就不是很清楚。 – Sriharsha
「在當地製作」是指櫻桃採摘之前還是之後? –