It's simply a tool to commit to GitHub.
GitHubCommit is a straightforward command-line utility aimed at simplifying the process of adding or updating a single file in a GitHub repository. It enhances efficiency by offering easy-to-use commands and automating routine tasks associated with Git commits.
- .NET Desktop Runtime 8.0 is required to run this tool.
- Ensure that the environment variable
GH_TOKEN
is set. This token is required for authenticating with GitHub to commit changes.
- Download the latest release from the GitHub releases page.
- Ensure that .NET Desktop Runtime 8.0 is installed on your machine.
- Extract the downloaded files to your preferred directory.
.\GitHubCommit.exe <SourceFilePath> <TargetFilePath> [OPTIONS]
Argument | Description |
---|---|
SourceFilePath | Specify the local path of the file to commit |
TargetFilePath | Specify the path of the file to create or update in the repository |
Option | Default | Description |
---|---|---|
-h, --help |
Prints help information | |
--repo <OWNERREPO> |
OWNER/REPO | Select another repository using the OWNER/REPO format |
--branch <BRANCH> |
main | Specify the branch where the file will be created or updated |
--message <MESSAGE> |
Specify the commit message for the file creation or update |
Example of committing changes to the main branch:
.\GitHubCommit.exe sampling_2024-12.csv data/sampling.csv --repo MareMare/GHCommitSandbox