Modified the git cheatsheet
This commit is contained in:
1 parent
16c31c11fe
commit
b20b6436e8
1 file changed
+9
@@ -17,6 +17,15 @@ git commit -m "Your commit message"
|
||||
# To edit previous commit message
|
||||
git commit --amend
|
||||
|
||||
# To removed staged and working directory changes
|
||||
git reset --hard
|
||||
|
||||
# To remove untracked files
|
||||
git clean -f -d
|
||||
|
||||
# To remove untracked and ignored files
|
||||
git clean -f -d -x
|
||||
|
||||
# To push to the tracked master branch:
|
||||
git push origin master
|
||||
|
||||
|
||||
Reference in new issue
Block a user