Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Git Yup
alias yup='eval $(fc -ln -1 | sed "s/git/git -c \"help.autocorrect=-1\"/")'
@lukechilds

This comment has been minimized.

Copy link
Owner Author

@lukechilds lukechilds commented Aug 23, 2016

Usage:

$ git puhs
git: 'puhs' is not a git command. See 'git --help'.

Did you mean this?
        push

$ yup
WARNING: You called a Git command named 'puhs', which does not exist.
Continuing under the assumption that you meant 'push'
Everything up-to-date

Thought this was a cool one liner. If you like this, checkout nvbn/thefuck for a more robust solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.