How To Combine Directories From Multiple Hosts Into a Single Git Repository

If you have multiple ~/bin/ directories across different hosts and want to consolidate them into a single Git repository hosted on your own Git server, follow these steps. 1. Create a New Bare Git Repository on Your Git Server First, log in to your Git server and create a new repository:
1 2 3 4 |
mkdir -p /path/to/git/repos/bin.git cd /path/to/git/repos/bin.git git init --bare chown -R git: /path/to/git/repos/bin.git |
This repository will […]