๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ s โ€บ Linux โ€บ 3088 captured on 2023-09-28 at 17:49:27. Gemini links have been rewritten to link to archived content

View Raw

More Information

โฌ…๏ธ Previous capture (2023-09-08)

โžก๏ธ Next capture (2023-11-04)

๐Ÿšง View Differences

-=-=-=-=-=-=-

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.)

#git

Posted in: s/Linux

๐Ÿ•๏ธ bjnaved

2023-07-13 ยท 3 months ago ยท ๐Ÿ‘ StanStani, akrabu

3 Comments โ†“

๐ŸŒ™ dmoonfire

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.

๐Ÿ•๏ธ bjnaved

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

๐Ÿš€ StanStani

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