Skip to content

Commit

Permalink
update git version
Browse files Browse the repository at this point in the history
  • Loading branch information
WSMathias committed Mar 10, 2024
1 parent 040216e commit a5971b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Git cheat sheet

| git | version >= 2.7.4 |
| git | version >= 2.28 |
|-----|------------------|

### Basic git setup :
Expand Down Expand Up @@ -96,8 +96,8 @@
| ` git commit --amend` | Edit last commit message. |
| ` git revert <commit_id>` | Rollback to the commit specified by commit_id |
| ` git rebase -i HEAD~n` | Opens list of the last n commits,<br>replace _"pick"_ by _"reword"_ to alter the commit message of those commits. |
| ` git reset --soft HEAD~n` | Uncommit the last n commits without overwriting the working directory files. |
| ` git reset --hard HEAD~n` | Uncommit last n changes and overwrite the working directory files |
| ` git reset --soft HEAD~n` | Uncommit the last n commits without overwriting the working directory files. |
| ` git reset --hard HEAD~n` | Uncommit last n changes and overwrite the working directory files |
| ` git cherry-pick <commit_id>` | Pull commit from any branch by its commit id into the current branch |
| ` git rev-parse --short HEAD` | Print last commit id |
| ` git commit --all --amend --no-edit` | Add current changes to last commit |
Expand Down

0 comments on commit a5971b5

Please sign in to comment.