This self-question and answer. I have been accustomed to using svn for centralized management before. The files under svn control can be submitted directly after modification. However, for Git with distributed design, this method is wrong. After modification, it can be submitted. Use the git add command to first put the modified files into the staging area, and the files submitted in git commit will always be in the staging area.
This self-question and answer. I have been accustomed to using svn for centralized management before. The files under svn control can be submitted directly after modification. However, for Git with distributed design, this method is wrong. After modification, it can be submitted. Use the git add command to first put the modified files into the staging area, and the files submitted in git commit will always be in the staging area.