In effect, it resets (clears out) the staging area and overwrites content in the working directory with the content from the commit you reset to. This overwrites any local changes you haven't committed. Using these options can be useful in targeted circumstances such as git reset -hard . These options include: hard to reset the commit being pointed to in the repository, populate the working directory with the contents of the commit, and reset the staging area soft to only reset the pointer in the repository and mixed (the default) to reset the pointer and the staging area. ![]() The git reset command also includes options to update the other parts of your local environment with the contents of the commit where you end up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |