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 a0fff63

Browse files
author
Saiful
committed
Removing files
1 parent 67021af commit a0fff63

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

‎README.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,16 @@ Though there are 1000’s of articles about git, I have written this article is
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 and folder
217+
### Removing files
218218
219-
# Removes files from Stagging index and your working directory
219+
# Removes files from Stagging and your working directory
220220
# Start untracking a previously tracked file
221-
$ git rm filename
221+
$ git rm [file1] [file2] [fileN]
222222

223+
# Removes files from Stagging but the file will be remained in the Workspace.
224+
# Start untracking a previously tracked file
225+
$ git rm --cached [file]
226+
223227
### Stash
224228

225229
# Temporarily saves or stashes changes of working copy and and move them in later.
@@ -250,15 +254,6 @@ Though there are 1000’s of articles about git, I have written this article is
250254
# Remove all stashes
251255
$ git stash clear
252256

253-
### Ignore files and folder
254-
255-
# Delete the files in the Workspace and put this deletion into the Staging.
256-
$ git rm [file1] [file2] ...
257-
258-
# Stop tracking the specified file, but the file will be remained in the Workspace.
259-
$ git rm --cached [file]
260-
261-
262257
### Tag
263258

264259
# List all tags.
@@ -289,7 +284,6 @@ Though there are 1000’s of articles about git, I have written this article is
289284
$ git checkout -b [branch] [tag]
290285

291286

292-
293287
### Others
294288

295289
# Select a commit to be merged into the current branch.

0 commit comments

Comments
(0)

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