Skip to content

2KAbhishek/2KAbhishek-git-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

License People Stars Forks Watches Last Updated

Hassle Free Git Syncing πŸ™πŸ”„

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

✨ Features

  • Sync all your git repos silently
  • Plain text based configuration

Setup

⚑ Requirements

You will need a config file with repo paths: "$HOME/.config/gsync"

$HOME/Projects/repo1
$HOME/Projects/GitHub/repo2

πŸš€ Installation

git clone https://github.com/2kabhishek/gsync
cd gsync
# symlink to a directory in your PATH
ln -sfnv $PWD/gsync.sh $HOME/.local/bin/gsync

gsync config # Edit the config file

πŸ’» Usage

USAGE:
    gsync [c | config | -c | --config]
Example:
    gsync # Sync repos in config file
    gsync 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

πŸ” More Info

  • entry β€” Make daily entries
  • committer β€” Easy commits and backups

⭐ hit the star button if you found this useful ⭐

Source | Blog | Twitter | LinkedIn | More Links | Other Projects

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages