mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
added get-current-ref.sh script
This commit is contained in:
1 parent
8e90f73867
commit
7b2dca96c4
1 file changed
+5
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
branch=$(git for-each-ref --format=$'%(objectname) %(refname:short)' refs/heads | awk "/^$(git rev-parse HEAD)/ {print \$2}")
|
||||
echo $branch
|
||||
|
||||
Reference in new issue
Block a user