Skip to content

Commit 4f7d9a6

Browse files
authored
feat(git): Added complementary support for the git config subcommands (#1117)
1 parent 4ecbb0e commit 4f7d9a6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

custom-completions/git/git-completions.nu

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,34 @@ export extern "git branch" [
552552
--track(-t) # when creating a branch, set upstream
553553
]
554554

555+
# List all variables set in config file, along with their values.
556+
export extern "git config list" [
557+
]
558+
559+
# Emits the value of the specified key.
560+
export extern "git config get" [
561+
]
562+
563+
# Set value for one or more config options.
564+
export extern "git config set" [
565+
]
566+
567+
# Unset value for one or more config options.
568+
export extern "git config unset" [
569+
]
570+
571+
# Rename the given section to a new name.
572+
export extern "git config rename-section" [
573+
]
574+
575+
# Remove the given section from the configuration file.
576+
export extern "git config remove-section" [
577+
]
578+
579+
# Opens an editor to modify the specified config file
580+
export extern "git config edit" [
581+
]
582+
555583
# List or change tracked repositories
556584
export extern "git remote" [
557585
--verbose(-v) # Show URL for remotes

0 commit comments

Comments
 (0)