On the current branch alias, don't forget git branch --show-current with Git 2.22: stackoverflow.com/a/55088865/6309. I used it in stackoverflow.com/a/56713414/6309
git branch --show-current
I HAD NO IDEA. This is awesome! Thank you! :)
also if you've got git > 2 this works
git status --porcelain=v2 --untracked-file=no --branch \ | grep branch.head \ | cut -d ' ' -f 3
looks like I'm still a little behind on versions. I'm on v2.17.x
Neat tip though, I'll have to remember to come back and change my rc files to use this :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
On the current branch alias, don't forget
git branch --show-current
with Git 2.22: stackoverflow.com/a/55088865/6309.I used it in stackoverflow.com/a/56713414/6309
I HAD NO IDEA. This is awesome! Thank you! :)
also if you've got git > 2 this works
git status --porcelain=v2 --untracked-file=no --branch \
| grep branch.head \
| cut -d ' ' -f 3
looks like I'm still a little behind on versions. I'm on v2.17.x
Neat tip though, I'll have to remember to come back and change my rc files to use this :)