-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
back-compatImprove Backwards CompatibilityImprove Backwards Compatibility
Description
The git branch --show-current command was only introduced in Git 2.22.0, which was released 2019-06-07.
If you’re running an older version of Git, this command will fail. Instead we can use
git rev-parse --abbrev-ref HEAD
which gives the same result as git branch --show-current but is supported in much older versions of GIt.
Change to Make
We want to change git branch --show-current in this line
Line 10 in a532c81
| drb = !git push origin --delete $(git branch --show-current) |
and this line
Line 19 in a532c81
| Alias for `git push origin --delete $(git branch --show-current)` to delete the remote branch with the same name as the current branch from the remote **origin**. |
to git rev-parse --abbrev-ref HEAD
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
back-compatImprove Backwards CompatibilityImprove Backwards Compatibility