layris3 / Daily-learning-experience-record

daily learning experience
0 stars 0 forks source link

git-git reset HEAD <filename> #10

Open layris3 opened 4 years ago

layris3 commented 4 years ago

if you staged 2 files but you wanna have 2 commits. run the command git reset HEAD <filename>,now the file you don't want to stage is unstaged.