Joined March 2012
·

Manoj

Application Developer at ThoughtWorks
·
Chennai
·
·
·

@twolfson From the docs:

Only match <filepattern> against already tracked files in the index rather than the working tree. That means that it will never stage new files, but that it will stage modified new contents of tracked files and that it will remove files from the index if the corresponding files in the working tree have been removed.

That does mean that git add -u stages deletions too. These commands take in an optional <filepattern> and when that is not given, it is by default .

git add -A add all files, including untracked ones.

Achievements
473 Karma
182,839 Total ProTip Views