Skip to content

Commit

Permalink
correction to wrong description of 'git reset'
Browse files Browse the repository at this point in the history
  • Loading branch information
schiluveri committed Apr 6, 2020
1 parent 574ee38 commit f7d084a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ git commit -a # Make a new commit and automatically "a
git commit -am "I still do!" # A combination of the above
git commit --amend # Re-do the commit message of the previous commit (don't do this after pushing!)
# We _never_ change "public history"
git reset --soft [commit_hash] # Unstage a staged file leaving in working directory without losing any changes.
git reset <file> # Unstage a staged file leaving in working directory without losing any changes.
git reset --soft [commit_hash] # resets the current branch to <commit>. Does not touch the staging area or the working tree at all.
# --hard mode would discard all changes to given file.

# Configuring a different editor
Expand Down

0 comments on commit f7d084a

Please sign in to comment.