File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,15 @@ Table of Contents
51
51
| ` git clean -f ` | To delete or remove unstaged files forcefully |
52
52
| ` git commit -m "message about updates" ` | Commit changes to current branch |
53
53
| ` 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) |
54
55
| ` git rm [file] ` | Deletes the file from your working directory and stages the deletion |
55
56
| ` git pull ` | Fetches and merges changes on the remote server to your working directory |
56
57
| ` git fetch ` | Gathers remote commits but does not merge them unlike ` pull ` |
57
58
| ` git remote add origin [url] ` | Adding a remote repository |
58
59
| ` git show ` | Shows information about any git object |
59
60
| ` gitk ` | Shows graphical interface for a local repository |
60
61
| ` git revert [commit-ID] ` | Create new commit, reverting the changes from a specified commit |
62
+ | ` git checkout [file] ` | Matches the file with last commit |
61
63
62
64
63
65
** [ 🔼Back to Top] ( #table-of-contents ) **
You can’t perform that action at this time.
0 commit comments