A command-line interface for GitHub that uses the GitHub API instead of git binary.
curl https://raw.githubusercontent.com/cheruvian/node-git/refs/heads/main/install.sh > ~/git-install.sh && source ~/git-install.sh
The quick install command above will:
- Create a
~/bin
directory if it doesn't exist - Download the CLI to
~/bin/git
- Make it executable
- Add it to your PATH for the current session
- Create a
git
alias for the current session
- Create a GitHub Personal Access Token with repo scope
- Set the token as an environment variable:
Or create a
export GITHUB_TOKEN=your_token_here
.env
file with:GITHUB_TOKEN=your_token_here
git init
- Initialize a new repositorygit clone owner/repo
- Clone a repositorygit push <message>
- Push changes with commit messagegit status
- Show working tree statusgit diff [filepath]
- Show changesgit reset [filepath]
- Reset to last snapshotgit remote add owner/repo
- Add remote repositorygit remote show
- Show remote infogit submodule add owner/repo
- Add a submodulegit submodule status
- Show submodules statusgit submodule push owner/repo
- Push submodule changes
- Uses GitHub API for operations
- Respects .gitignore patterns
- Supports basic git operations
- Colorized output
- Detailed error messages
- Node.js 16 or higher
- GitHub Personal Access Token
- GitHub account