Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c060542

Browse files
author
Saiful
committed
Removing files
1 parent 7afeb8b commit c060542

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,13 @@ Though there are 1000’s of articles about git, I have written this article is
208208
# Undo the last commit.
209209
$ git reset --hard HEAD~1
210210

211-
### Revoke/Undo from Remote (Workspace <-- Staging <-- Repository)
211+
### Revoke/Undo from Remote (Workspace <-- Staging <-- Repository <-- Remote)
212212

213213
# Create a new commit to undo the specified commit.
214214
# All changes of the latter will be offset by the former and applied to the current branch.
215215
$ git revert [commit]
216216

217-
### Removing files from remote (Workspace --> Staging --> Repository --> Remote)
217+
### Removing files (Workspace --> Staging)
218218
219219
# Removes files from Stagging and your working directory
220220
# 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
223223
# Removes files from Stagging but the file will be remained in the Workspace.
224224
# Start untracking a previously tracked file
225225
$ git rm --cached [file]
226-
226+
227227
### Removing files manual process (Workspace --> Staging --> Repository --> Remote)
228228

229229
# Manually delete the file from Workspace
230230
# The following command will permanently remove the file
231231
$ git add .
232232
$ git commit -m "message"
233-
$ git pull origin [branch]
233+
$ git push origin [branch]
234234
235235
### Stash
236236

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /