Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2kabhishek/git-sync
Hassle Free Git Syncing 🐙🔄
https://github.com/2kabhishek/git-sync
git github maintainers repos script sync utility
Last synced: about 2 months ago
JSON representation
Hassle Free Git Syncing 🐙🔄
- Host: GitHub
- URL: https://github.com/2kabhishek/git-sync
- Owner: 2KAbhishek
- License: gpl-3.0
- Created: 2023-03-13T09:16:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T20:04:09.000Z (7 months ago)
- Last Synced: 2024-06-06T21:43:28.640Z (7 months ago)
- Topics: git, github, maintainers, repos, script, sync, utility
- Language: Shell
- Size: 23.4 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
git-sync is a simple tool that silently syncs all your git repos.
If you have a bunch of git repos to maintain and switch devices often, a lot of time is wasted on syncing those repos.
This is as simple as running `git-sync`
## ✨ Features
- Sync all your git repos silently
- Plain text based configuration## Setup
### ⚡ Requirements
You will need a config file with repo paths: "$HOME/.config/git-sync"
```
$HOME/Projects/repo1
$HOME/Projects/GitHub/repo2
```### 🚀 Installation
```bash
git clone https://github.com/2kabhishek/git-sync
cd git-sync
# symlink to a directory in your PATH
ln -sfnv $PWD/git-sync.sh $HOME/.local/bin/git-syncgit-sync config # Edit the config file located at $HOME/.config/git-sync.conf
# or
git sync config
```### 💻 Usage
```bash
USAGE:
git-sync or git sync [c | config | -c | --config]
Example:
git-sync # Sync repos in config file
git-sync c # Edit the config file
```## Behind The Code
### 🌈 Inspiration
Maintaining all of the repos I have was becoming a major hassle, faced some issues too, needed a tool to do this quietly.
### 💡 Challenges/Learnings
- I learned about using `IFS` for reading data for files
- Used `case` for command line flags in bash### 🧰 Tooling
- [Macfiles](https://github.com/2kabhishek/Macfiles) — Dev Environment
- [nvim2k](https://github.com/2kabhishek/nvim2k) — Personalized Editor### 🔍 More Info
- [entry](https://github.com/2kabhishek/entry) — Make daily entries
- [committer](https://github.com/2kabhishek/committer) — Easy commits and backups
⭐ hit the star button if you found this useful ⭐
Source
| Blog
| More Links
| Other Projects