@@ -208,13 +208,13 @@ Though there are 1000’s of articles about git, I have written this article is
208
208
# Undo the last commit.
209
209
$ git reset --hard HEAD~1
210
210
211
- ### Revoke/Undo from Remote (Workspace <-- Staging <-- Repository)
211
+ ### Revoke/Undo from Remote (Workspace <-- Staging <-- Repository <-- Remote )
212
212
213
213
# Create a new commit to undo the specified commit.
214
214
# All changes of the latter will be offset by the former and applied to the current branch.
215
215
$ git revert [commit]
216
216
217
- ### Removing files from remote (Workspace --> Staging --> Repository --> Remote )
217
+ ### Removing files (Workspace --> Staging)
218
218
219
219
# Removes files from Stagging and your working directory
220
220
# Start untracking a previously tracked file
@@ -223,14 +223,14 @@ Though there are 1000’s of articles about git, I have written this article is
223
223
# Removes files from Stagging but the file will be remained in the Workspace.
224
224
# Start untracking a previously tracked file
225
225
$ git rm --cached [file]
226
-
226
+
227
227
### Removing files manual process (Workspace --> Staging --> Repository --> Remote)
228
228
229
229
# Manually delete the file from Workspace
230
230
# The following command will permanently remove the file
231
231
$ git add .
232
232
$ git commit -m "message"
233
- $ git pull origin [branch]
233
+ $ git push origin [branch]
234
234
235
235
### Stash
236
236
0 commit comments