mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 05:02:28 +00:00
Add another git checkout alias for remote branches
This commit is contained in:
@@ -201,7 +201,8 @@ in {
|
|||||||
".." = "cd ..";
|
".." = "cd ..";
|
||||||
c = "code";
|
c = "code";
|
||||||
g = "git";
|
g = "git";
|
||||||
gco = "git checkout $(git branch | fzf| tr -d '[:space:]')";
|
gc = "git checkout $(git branch | fzf)";
|
||||||
|
gco = "git checkout $(git branch -r | sed -e 's/^ origin\\///' | fzf)";
|
||||||
gr = "cd $(git rev-parse --show-toplevel)";
|
gr = "cd $(git rev-parse --show-toplevel)";
|
||||||
gho = "gh repo view --web >/dev/null";
|
gho = "gh repo view --web >/dev/null";
|
||||||
grep = "rg --smart-case";
|
grep = "rg --smart-case";
|
||||||
|
Reference in New Issue
Block a user