N
N
naneri2015-02-25 20:32:05
git
naneri, 2015-02-25 20:32:05

What is the difference between "Git add -A" and "Git add ."?

Question:
What is the difference between "Git add -A" and "Git add ." ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Abdullaev, 2015-02-25
@naneri

git add . - will add only new and changed ones, but will not exclude deleted ones
git add -A (git add --all) - will add both new and changed ones, and exclude deleted ones

H
Holfamer, 2015-02-25
@holfamer

git add . – adding (indexing) new and changed files, without deleted files. Appends all changes to the files in the current directory and its subdirectories.
git add -u - adding (indexing) changed and deleted files, without new files.
git add -A - adding (indexing) all files: new, changed and deleted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question