File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,12 +116,12 @@ Relocate and remove versioned files
116
116
117
117
``` $ git rm [file] ```
118
118
119
- Deletes the ` [ file] ` from the working directory and stages the deletion
119
+ Deletes the file from the working directory and stages the deletion
120
120
121
121
122
122
``` $ git rm --cached [file] ```
123
123
124
- Removes the ` [ file] ` from version control but preserves the file locally
124
+ Removes the file from version control but preserves the file locally
125
125
126
126
127
127
``` $ git mv [file-original] [file-renamed] ```
@@ -178,7 +178,7 @@ Lists version history for the current branch
178
178
179
179
``` $ git log --follow [file] ```
180
180
181
- Lists version history for a file, including renames
181
+ Lists version history for the file, including renames
182
182
183
183
184
184
``` $ git diff [first-branch]...[second-branch] ```
@@ -196,7 +196,7 @@ Erase mistakes and craft replacement history
196
196
197
197
``` $ git reset [commit] ```
198
198
199
- Undoes all commits after [ commit] , preserving changes locally
199
+ Undoes all commits after ` [commit] ` , preserving changes locally
200
200
201
201
202
202
``` $ git reset --hard [commit] ```
You can’t perform that action at this time.
0 commit comments