7
Gitでは既にステージングされているがその後変更されたファイルのみをステージングすることは可能ですか?例えば、Gitでは、ステージングされ、修正されたファイルのみをステージングすることは可能ですか?
を与えられた:
> git status
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: file1
modified: file2
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: file2
modified: file3
はfile2
(例えばないgit add file2
または類似したもの)を指定せずにのみ、ステージfile2
にGitリポジトリを伝えることが可能ですか?
パーフェクト。エイリアスのもう一つ: 'restage = update-index --again' – neverendingqs
@neverendingqs - そうです、それは役に立ちます:) – manojlds