Skip to content

Commit

Permalink
Merge pull request #188 from janetthieu/feature_add-git-commands
Browse files Browse the repository at this point in the history
feat: add git commands #80
  • Loading branch information
crescentpartha authored Oct 25, 2022
2 parents ae6eed5 + db45b26 commit 3254cb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CheatSheets/git-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ created: 2022-10-18
| `gitk` | Shows graphical interface for a local repository |
| `git revert [commit-ID]` | Create new commit, reverting the changes from a specified commit |
| `git checkout [file]` | Matches the file with last commit |
| `git help -a` | Shows the list of all available Git commands |
| `git restore .` | To restore all files in the current directory |

**[🔼Back to Top](#table-of-contents)**

Expand Down Expand Up @@ -124,6 +126,8 @@ created: 2022-10-18
| `git bisect start` | Starts the bisection search process to find that bad commit which introduced the bug we're facing right now |
| `git bisect good` <br /> `git bisect good [Commit ID]` | Takes up the good commit, which is that one where the bug was not there |
| `git bisect bad [Commit ID]` | Takes up the bad commit, which is that one where the bug was there. If commit ID is not provided, then it takes up the current commit as the bad commit |
| `git grep "hello"` | A text search on all files in the directory |
| `git bugreport` | Created new report at `git-bugreport-2022-10-25-1228.txt` |

**[🔼Back to Top](#table-of-contents)**

Expand Down

0 comments on commit 3254cb4

Please sign in to comment.