added some tips and tricks
This commit is contained in:
1 parent
4c58f8abec
commit
2879029cf9
1 file changed
+14
@@ -1,3 +1,17 @@
|
|||||||
# isuckatgit
|
# isuckatgit
|
||||||
A test repo to show off my low skills at git. Indeed this repo is to
|
A test repo to show off my low skills at git. Indeed this repo is to
|
||||||
publicly shame myself until I learn and become git fluent.
|
publicly shame myself until I learn and become git fluent.
|
||||||
|
|
||||||
|
|
||||||
|
### tips and tricks
|
||||||
|
|
||||||
|
### striping out last local commit
|
||||||
|
|
||||||
|
`git reset --soft HEAD~1`
|
||||||
|
|
||||||
|
### changed the last pushed commit
|
||||||
|
|
||||||
|
~~~
|
||||||
|
git commit --amend
|
||||||
|
git push --force-with-lease
|
||||||
|
~~~
|
||||||
Reference in new issue
Block a user