After making changes to the file. I am using git add FILE_NAME .
git add FILE_NAME
Then I would like to return it as not being added , but in the meantime save the changes , how to do it?
git reset -- FILE_NAME will do this.
git reset -- FILE_NAME
See git reset manual :
git reset
This form resets index entries for all <paths> to their state in <commit> . (This does not affect the working tree or current branch.)This means that git reset <paths> opposite of git add <paths> .
This form resets index entries for all <paths> to their state in <commit> . (This does not affect the working tree or current branch.)
<paths>
<commit>
This means that git reset <paths> opposite of git add <paths> .
git reset <paths>
git add <paths>
git stash save git stash apply
they will all be unidentified
you can use
git reset --mixed -- <filename>
if you use --hard, you will discard all your changes.
You can use git reset
Source: https://habr.com/ru/post/903124/More articles:Selenium 2.0 WebDriver Advacanced Interactions DoubleClick Help (C #) - c #IIS understands static files in MVC as dynamic content - asp.net-mvcShould I avoid the expected integer value with mysql_real_escape_string or can I just use (int) $ expectedinteger - castingCapistrano deploys how to use use_sudo and admin_runner - deploymentSpecify SELECT timeout for SQLITE - sqlUILabel line break is ignored when building - iosAdd start script service for amazon linux AMI - linuxChanging div height per click using jquery - jquerycan't implicitly convert type System.DateTime? to System.DateTime - c #How to calculate point addition using Jacobian coordinate system over elliptic curves - cryptographyAll Articles