Skip to content

Commit e3f6fd7

Browse files
authored
Update git-cheatsheet.md
1 parent f8f75fd commit e3f6fd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CheatSheets/git-cheatsheet.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ Table of Contents
5151
| `git clean -f` | To delete or remove unstaged files forcefully |
5252
| `git commit -m "message about updates"` | Commit changes to current branch |
5353
| `git commit -amend` | Amend with last commit but use the previous commit log message |
54+
| `git rm --cached [file]` | Removes the file from the staging area (Unstage) |
5455
| `git rm [file]` | Deletes the file from your working directory and stages the deletion |
5556
| `git pull` | Fetches and merges changes on the remote server to your working directory |
5657
| `git fetch` | Gathers remote commits but does not merge them unlike `pull` |
5758
| `git remote add origin [url]` | Adding a remote repository |
5859
| `git show` | Shows information about any git object |
5960
| `gitk` | Shows graphical interface for a local repository |
6061
| `git revert [commit-ID]` | Create new commit, reverting the changes from a specified commit |
62+
| `git checkout [file]` | Matches the file with last commit |
6163

6264

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

0 commit comments

Comments
 (0)