git add - What's the difference between `git add .` and `git add -u`? -
I was thinking that both work the way. Both files add each file to the
-  git add. What is the difference betweenandgit add -u
This is one of the git getchas (pre-2.0 2.0).
  git add  Only what is said, what has not been removed (if tracked) 
  git add git committed git status // Hey! Why does not this work out my deleted?, Oh, yes, silly git add-u git commit - menu     git add-a  Must keep ... 
together
git & lt; Path & gt;"git add -Ais similar to the path ", so that "code> git add dir / " lets you track paths removed from the directory Will keep and record to remove. 
In the earlier versions of Git, ignore the "gitremoval
"> Git add --ignore-removal & lt;" to add only add or modify paths in the code> Path & gt; "You can say, if you really want.
 Warning (). 
 I have modified my answer  git add - U. , instead of  git add -u . 
git add -uin Git 2.0 full Tree will work on "git commit -a" and stability with other commands.
Because to behave as "git add -u" There will be no system of "git aid -u" ", which is used for"git add -u"(without path-asepak), it is important for the paths present in the current sub-directory only To begin training for them, updating the index is clearly the fingers "git add -u"says, when Git 2.0 means before it comes.
As I" "
Comments
Post a Comment