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
sommerfeld 2y ago

nvk's git time savers

nostr:nevent1qqspffrwm62wnffuggs2a2pc9hlhzqfk6dthc464043pcajjhx9c0pcpvemhxue69uhkv6tvw3jhytnwdaehgu3wwa5kuef0dec82c33xeerqarv8psnxwtgdp3hyctsvycrxdf489uxz6rndfck5drnxpunvapjdc6kwurydvmrga3sxe48gem9ddckg6m6x4cxc0mzwfhkzerrv9ehg0t5wf6k2q3qaz9xj85cmxv8e9j9y80lvqp97crsqdu2fpu3srwthd99qfu9qsgsxpqqqqqqz89w48t

Reply to this note

Please Login to reply.

Discussion

No replies yet.