4 ms·
Aliases 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-
by slaymaker1907 4y ago
Aliases 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...