![]() ![]() The default option is git reset -mixed, which updates the current branch tip and moves anything in the staging area back to the working directory. Note that each branch head points to the tip of that branch, i.e. When git reset is run without specifying a commit, it is typically to undo changes in Git's staging area or working directory (or both), without resetting the branch to a different commit. ![]() Since Git HEAD always points to the currently checked out commit, the current branch tip is not repointed or changed in this case. This is equivalent to running the command "git reset HEAD". When the parameter is omitted, it defaults to the commit pointed to by Git HEAD.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |