Skip to content

Commit 0cdf33d

Browse files
committed
git reset section
1 parent 3e77994 commit 0cdf33d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,16 @@ This will set information to all repositories from your computer.
3535
`git add "path/to/file.html"` (Individual file)
3636
`git add .` (All files)"
3737

38-
###Commit files in stage area
38+
###Remove changes from stage area (And keep it as untracked)
39+
`git reset HEAD "path/to/file.html"` (Individual file)
40+
`git reset HEAD .` (All files)
41+
42+
###Remove changes from stage area (And discard it)
43+
`git reset --hard HEAD "path/to/file.html"` (Individual file)
44+
`git reset --hard HEAD .` (All files)
45+
46+
47+
###Commit changes in stage area
3948
`git commit -m "A nice message about your commit"`
4049

4150
###Pull things to remote repo

0 commit comments

Comments
 (0)