为什么git在暂存区之前还要有一个add的过程?
某草草
某草草 2017-05-02 09:25:40
0
1
616

最开始已经add进入track的文件,一旦修改了,要重新add,使其进入暂存区。我觉得让文件始终在暂存区就好了啊!然后修改满意了再commit就是。为什么修改之后就会脱离暂存区呢,这样会导致每次commit的时候要多加一个字符的呀!

某草草
某草草

reply all(1)
给我你的怀抱

When you have modified three files, added a new file, and deleted a file, but they belong to a modification of an original basic function and a new function, and you want people to see your modification record of this function, you You may need to submit this file separately instead of submitting it all at once.

The normal logic is to modify the underlying code first, such as bug fixes, and then submit new functions. Add can select files to be submitted independently in the temporary list

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!