git config --global alias.rekt = "reset --hard"
I'm stealing this one for demacia
oh I love this one!
I like "commit crime".
Some of the examples are broken.
The = is part of the config syntax but must not be present on the command line. For example
git config --global alias.c = "commit"
git config --global alias.c "commit"
Thanks for that! I corrected it
$ git oops
Instead of specifying branch name develop, which might get executed on another branch out of habbit, why not get current branch first? Search for ggpull and use its implementation :)
"Pushup" - to push commits from a (new) local branch to its (new) upstream:
git config --global alias.pushup "! git push --set-upstream origin \$(git branch | grep '*' | cut -d ' ' -f2)"
Nice! Thanks for this post.
It is sometimes recommended to use "pull --rebase=merges" instead of just "pull --rebase".
This is really good stuff! I would just make sure to not use git nah if I already pushed my code to the upstream.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.