Comment by ๐ŸŒ™ dmoonfire

=> Re: "Anybody have useful git aliases they would like to share?..." | In: s/Linux

My favorite is: mr = git push origin HEAD which pushes up the current branch to origin using the name of the local branch as the name of the remote branch.

=> ๐ŸŒ™ dmoonfire

2023-07-13 ยท 2 years ago

2 Later Comments โ†“

=> ๐Ÿ•๏ธ bjnaved [OP] ยท 2023-07-13 at 16:55:

Nice! I can use that to replace my more complicated git push origin "$(git branch --show-current)" :)

=> ๐Ÿš€ StanStani ยท 2023-07-13 at 18:06:

Hmm, I don't know if it counts but I have a hook that runs yarn every time I merge from main.

Original Post

=> ๐ŸŒ’ s/Linux

Anybody have useful git aliases they would like to share? One that really helps me that I've defined is co = !git checkout "$(git branch -a | fzf)". This lets me type git co, pick a branch interactively from the list, which then checks out that branch. (I know if I properly set up shell completions I'd get suggested branch names by hitting tab, but the fuzzy search behavior from fzf is really nice.)

=> ๐Ÿ’ฌ bjnaved ยท 3 comments ยท 2 likes ยท 2023-07-13 ยท 2 years ago ยท #git

Proxy Information
Original URL
gemini://bbs.geminispace.org/u/dmoonfire/3089
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
71.851475 milliseconds
Gemini-to-HTML Time
0.464174 milliseconds

This content has been proxied by September (3851b).