Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chkg2a/git_syncer
This bash script is used to manage git repos and sync them easily by simply calling the script.
https://github.com/chkg2a/git_syncer
bash bash-script bash-scripting git shell shell-script sync termux
Last synced: 6 days ago
JSON representation
This bash script is used to manage git repos and sync them easily by simply calling the script.
- Host: GitHub
- URL: https://github.com/chkg2a/git_syncer
- Owner: chkg2a
- License: gpl-3.0
- Created: 2024-10-29T15:33:51.000Z (7 days ago)
- Default Branch: main
- Last Pushed: 2024-10-30T06:55:30.000Z (7 days ago)
- Last Synced: 2024-10-30T07:19:50.347Z (7 days ago)
- Topics: bash, bash-script, bash-scripting, git, shell, shell-script, sync, termux
- Language: Shell
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Git Syncer
It's so painful to update git repos from my android phone using termux. This bash script is used to manage git repos and sync them easily by simply calling the script.## Help
```bash
git-syncer -h # Show the help
Usage: git_syncer.sh [options] [gitUrl] [optionalPath]Options:
-h, --help Show this help message and exit
gitUrl Git repository URL to clone or sync
optionalPath Optional path for cloning the repositoryDescription:
This script helps sync and clone Git repositories and maintain a config file for tracking.
If only gitUrl is provided, the repository is cloned to /home/xrenne/.local/share/clones/.
If both gitUrl and optionalPath are provided, the repository is cloned to optionalPath.
```## Usage
```bash
git-syncer [email protected]:username/repo.git # Adds /storage/emulated/0/ (default path) to the config for auto sync
git-syncer [email protected]:username/repo.git /storage/emulated/0/stuffs # Adds /storage/emulated/0/stuffs (repoPath) to the config for auto sync
git-syncer # Pushes all the changes from all the repos in the config and pulls the new changes
```## Installation
```bash
git clone https://github.com/chkg2a/git-syncer
cd git-syncer && bash install.sh
```