10 ms·
If anyone cares, I do something similar with my git aliases: https://github.com/kbd/setup/blob/master/HOME/.config/git/config https://github.com/kbd/setup/blob/
by kbd 4y ago
If anyone cares, I do something similar with my git aliases: https://github.com/kbd/setup/blob/master/HOME/.config/git/config https://github.com/kbd/setup/blob/master/HOME/.config/git/co...
So, "ga" similarly gives a fuzzy finder of files to "git add" that are actually in git status, "gcp" lets me cherry pick one or more commits from a branch where both the branch and commits are picked with fzf, and so on.
- WalterGR 4y agoHave you published those tools? I don't find anything relevant via Googling nor searching your repos.
- deleted 4y ago[deleted]
- travv0 4y agoWhat tools? That's a git config file.
- WalterGR 4y ago`ga` and `gcp`. Are those part of git?
- travv0 4y agoI assumed those were aliases for `git a` and `git cp` which are in the config file.
- WalterGR 4y agoNo, they're not in the config file. `gcp` and `ga` are part of forgit, not OPs config. That's why searching the repo didn't find anything. From the phrasing, I thought they were part of OPs repo. `gcp` https://github.com/wfxr/forgit/search?q=gcp https://github.com/wfxr/forgit/search?q=gcp `ga` https://github.com/wfxr/forgit/search?q=ga https://github.com/wfxr/forgit/search?q=ga
- travv0 4y agoSee https://news.ycombinator.com/item?id=31416448 https://news.ycombinator.com/item?id=31416448
- kbd 4y agoThe only part I left out is that as part of my shell config I automatically alias all my short git aliases (as well as a few special cases). So “gcp” -> “git cp” etc. https://github.com/kbd/setup/blob/d95653da5ab367b1e628b975371992a474f76d24/HOME/bin/shell/aliases.sh#L118 https://github.com/kbd/setup/blob/d95653da5ab367b1e628b97537...
- slaymaker1907 4y agoAliases are awesome, I use "git config --global alias.pwd 'symbolic-ref --short HEAD'" for easier management of branches. Instead of "git push -u origin really-long-branch-name", I can just do "git push $(git pwd)".
- kbd 4y agoHere’s what I do for that (aliased to ‘p’): https://github.com/kbd/setup/blob/d95653da5ab367b1e628b975371992a474f76d24/HOME/.config/git/config#L170 https://github.com/kbd/setup/blob/d95653da5ab367b1e628b97537...