Disable git add . command
问题 Many times I mistakenly add unwanted files to the staging area using the git add . command. I wonder if there is a way I could completely disable this command, so that I only use git add file ? 回答1: SVN re-education I guess it is a bad habit from svn, which has a default to add only tracked files [...] You must unlearn what you have learned :) You should run git status often. If files you want to ignore get listed as untracked files, you should then edit your .gitignore file, so that those