1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-30 13:47:46 +00:00

feat(git): Added complementary support for the git config subcommands (#1117)

This commit is contained in:
Cattle_Horse 2025-05-10 20:37:51 +08:00 committed by GitHub
parent 4ecbb0e04e
commit 4f7d9a626a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -552,6 +552,34 @@ export extern "git branch" [
--track(-t) # when creating a branch, set upstream
]
# List all variables set in config file, along with their values.
export extern "git config list" [
]
# Emits the value of the specified key.
export extern "git config get" [
]
# Set value for one or more config options.
export extern "git config set" [
]
# Unset value for one or more config options.
export extern "git config unset" [
]
# Rename the given section to a new name.
export extern "git config rename-section" [
]
# Remove the given section from the configuration file.
export extern "git config remove-section" [
]
# Opens an editor to modify the specified config file
export extern "git config edit" [
]
# List or change tracked repositories
export extern "git remote" [
--verbose(-v) # Show URL for remotes