私はgitのアドの塊の大きさを変更することはできますか?

StackOverflow https://stackoverflow.com/questions/1122210

  •  13-09-2019
  •  | 
  •  

質問

私は私がに取り組んできたファイルを持っているし、私はいくつかの行私が取り組んできたところの上にそれで間違いがあったことに気づきました。私はすぐに間違いを修正し、私は私の仕事の残りの部分をコミットする前に、それをコミットします。偉大な、これはGitが--patchを追加する場所に来ている!

を除き、私は一塊の両方の変更を組み込むことが提示されています。それは手動で私は2つのハンクをしたいgitのを伝えることはできますか?

役に立ちましたか?

解決

「Y」と「n」は、それが塊についてあなたを尋ねられたときに、あなたが与えることができるの答えの一つが「小さい兄貴にこの塊を分割」のため、「S」であることに加えて。完全なリスト:

y - stage this hunk
n - do not stage this hunk
q - quit, do not stage this hunk nor any of the remaining ones
a - stage this and all the remaining hunks in the file
d - do not stage this hunk nor any of the remaining hunks in the file
g - select a hunk to go to
/ - search for a hunk matching the given regex
j - leave this hunk undecided, see next undecided hunk
J - leave this hunk undecided, see next hunk
k - leave this hunk undecided, see previous undecided hunk
K - leave this hunk undecided, see previous hunk
s - split the current hunk into smaller hunks
e - manually edit the current hunk
? - print help

他のヒント

git guiは、彼らはあなたがコミットしたくない他の修飾された線で囲まれていても、あなたは、単一の行をコミットすることができます。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top