Replying to Avatar DETERMINISTIC OPTIMISM 🌞

Git time savers I use often. [ZSH]

## Capitulation, fuck my changes and clean up.

gifu(){

branch=$(git rev-parse --abbrev-ref HEAD);

git fetch origin;

git reset --hard origin/$branch;

print -P "=> Git, I Fucked Up; cleaned it for you."

}

## Open Project on Github

gop(){

open `git remote -v | sed 's/^.*:/http:\/\/github.com\//' | sed 's/.git .*//' | tail -1`

}

## Open Project Issues on Github

gip(){

url=$(git remote -v | perl -n -e 'm{:(.+?).git} && print $1,"\n"' | uniq );

open "http://github.com/$url/issues"

}

Avatar
rieger_san 2y ago

Since I’m using Fork I don’t fuck up Git anymore πŸ˜…

Really great tool I can recommend it’s worth the 50$

https://git-fork.com

I saved gop and gip really nice 😊

Reply to this note

Please Login to reply.

Discussion

Avatar
DETERMINISTIC OPTIMISM 🌞 2y ago

No tools. That never ends well.

Thread collapsed