git2git
v1.0.3
Published
![Git2Git Logo](https://firebasestorage.googleapis.com/v0/b/dr-soft-gufdou.appspot.com/o/G2G%20logo.png?alt=media&token=ef3c9d82-b8d1-4d01-b61b-a81377961487)
Downloads
9
Maintainers
Readme
GIT2GIT
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 0.10 or higher is required.
Installation is done using the
npm install
command:
npm install git2git
Features
- Push single or multiple projects on any git version control system like github, gitlab and your local bitbucket server.
- Transfer changes made in a project on a different version control system to a different version control system like from bitbucket server to gitlab.
Quick Start
$ npm install -g git2git
- To use git2git you need to keep your projects into two separate folders and make sure all both folders have same projects but pointing to different git version control systems.
- You will be making changes in a project in one of the two folders and using git2git you can transfer those changes to the same project in the other directory that is pointing to another git version control system and push them online.
After Installing git2git go to your terminal and set the paths for the two directories that will be having your projects with the command bellow
git2git config -l <localpath> -o <online path>
- The local path is where you keep the version of the project that you will be making changes to and the online path is the path where you keep the version of the project where you will like to send those changes to you can also push projects found in the local path to their origin.
After doing that you should be able to use git2git
Example
- Lets say i have a project none as Testing and i have this project in my online path with the same name Testing
- And i happened to make some changes in the Testing on my local path because remember that is where we make our changes.
- So how do i send this changes to the same project found in the Online Directory that is pointing to a different version control system.
- Push local Changes to local remote first using the bellow command
git2git pushlocal Testing:branch:'commit message'
You can specify more than one project you just need to give space and keep adding the next and the next to push all local projects updates online with one command you need to use the bellow command.
git2git pushlocal all 'Commit message for all the projects'
git2git push Testing:branch:'Commit Message'
The first thing is the projects name and the second is the branch that you made the changes too and the third is the commit message and you can also add another project just be giving space and entering the details of the next project.
For more commands on how to use git2git
- After installing git2git you can type the bellow command in your terminal to know more on how to use git2git.
git2git help