We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gstat
git-aliases
1 parent 759218d commit d379cbaCopy full SHA for d379cba
aliases/git/git-aliases.nu
@@ -1,5 +1,6 @@
1
+# returns the name of the current branch
2
export def git_current_branch [] {
- (gstat).branch
3
+ ^git rev-parse --abbrev-ref HEAD
4
}
5
6
export def git_main_branch [] {
0 commit comments