An open API service indexing awesome lists of open source software.

https://github.com/maremare/githubcommit

It's simply a tool to commit to GitHub.
https://github.com/maremare/githubcommit

csharp dotnet8 octokit-net

Last synced: 3 months ago
JSON representation

It's simply a tool to commit to GitHub.

Awesome Lists containing this project

README

        

# GitHubCommit

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.

## Requirements

- [.NET Desktop Runtime 8.0](https://dotnet.microsoft.com/en-us/download/dotnet/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.

## Installation

1. Download the latest release from the [GitHub releases page](https://github.com/MareMare/GitHubCommit/releases).
2. Ensure that [.NET Desktop Runtime 8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) is installed on your machine.
3. Extract the downloaded files to your preferred directory.

## Usage

```ps1
.\GitHubCommit.exe [OPTIONS]
```

### Arguments

| 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 |

### Options

| Option | Default | Description |
|------------------------|-------------|------------------------------------------------------------------|
| `-h, --help` | | Prints help information |
| `--repo ` | OWNER/REPO | Select another repository using the OWNER/REPO format |
| `--branch ` | main | Specify the branch where the file will be created or updated |
| `--message ` | | Specify the commit message for the file creation or update |

## Examples

Example of committing changes to the main branch:
```ps1
.\GitHubCommit.exe sampling_2024-12.csv data/sampling.csv --repo MareMare/GHCommitSandbox
```