Why does git have an add process before the staging area?
某草草
某草草 2017-05-02 09:25:40
0
1
684

Once the file has been added to the track at the beginning, once it is modified, it must be added again to make it enter the temporary storage area. I think it would be nice to keep the files in the temporary storage area! Then when you are satisfied with the changes, commit. Why does it leave the temporary storage area after modification? This will cause an extra character to be added every time you 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