git-utility
v0.3.0
Published
A Git utility CLI tool with some missing sub commands
Maintainers
Readme
Git utility
A Git utility CLI tool with some missing sub commands
Installation
npm i git-utility -gor run with npx / pnpx directly:
npx git-utility # your arguments hereUsage
Download folders or files from Git repositories
# Download entire repository to current directory
xgit download https://github.com/your-org/your-repo
# Download from specific branch
xgit download https://github.com/your-org/your-repo main
# Download specific folder or file
xgit download https://github.com/your-org/your-repo main path/to/your-folder/or-file
# Download to a specific local path
xgit download https://github.com/your-org/your-repo main path/to/your-folder/or-file ./local-destinationUpload folders to Git repositories
# Upload a folder to a Git repository on a specific branch (force push)
xgit upload path/to/source-folder https://github.com/your-org/your-repo target-branch
# Upload to a specific directory in the repository (non-force push)
xgit upload path/to/source-folder https://github.com/your-org/your-repo target-branch target/directoryManage Git submodules
# List current submodules
xgit submodule remove
# Remove a specific submodule
xgit submodule remove path/to/submoduleCommands
xgit download <GitURL> [branchName] [folderOrFilePath] [targetFolder]- Download folders or files from a Git repositoryxgit upload <sourceFolder> <GitURL> <targetBranch> [targetFolder]- Upload a folder to a Git repositoryxgit submodule remove [path]- Remove a Git submodule

