Great post Eyar!!
You could have mentioned the git alias feature, in order to use these in a much more intuitive way. For instance, I have set git uncommit just like you mentioned:
reset HEAD^
There are others that are useful for me:
History tree
log --oneline --graph --decorate
Intuitive way to unstage files
reset HEAD --
Show the current aliases
config --get-regexp ^alias\\.
Restore deleted file from upstream
"!git checkout $(git upstream) -- #@"
... which depends on
rev-parse --abbrev-ref --symbolic-full-name @{u}
I wanted to add information regarding the alias feature, but I was afraid it would make the post too much long for reading.
I will update the post, and I will add a link to your comment so readers will still have a reference for git alias - thanks!
git alias
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great post Eyar!!
You could have mentioned the git alias feature, in order to use these in a much more intuitive way. For instance, I have set git uncommit just like you mentioned:
reset HEAD^
There are others that are useful for me:
History tree
log --oneline --graph --decorate
Intuitive way to unstage files
reset HEAD --
Show the current aliases
config --get-regexp ^alias\\.
Restore deleted file from upstream
"!git checkout $(git upstream) -- #@"
... which depends on
rev-parse --abbrev-ref --symbolic-full-name @{u}
I wanted to add information regarding the alias feature, but I was afraid it would make the post too much long for reading.
I will update the post, and I will add a link to your comment so readers will still have a reference for
git alias
- thanks!