All Projects → rhasan33 → git-transfer

rhasan33 / git-transfer

Licence: other
Completely clone your existing repository to another one with all the branches and tags.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to git-transfer

Netflix
Netflix in React
Stars: ✭ 16 (+23.08%)
Mutual labels:  cloning
bLUe PYSIDE
bLUe - A simple and comprehensive image editor featuring automatic contrast enhancement, color correction, 3D LUT creation, raw postprocessing, exposure fusion and noise reduction
Stars: ✭ 41 (+215.38%)
Mutual labels:  cloning
django-clone
Controlled Django model instance replication.
Stars: ✭ 89 (+584.62%)
Mutual labels:  cloning
OpenGnsys
OpenGnsys (pronounced Open Genesis) is a free and open source project that provides tools for managing and deploying different operating systems.
Stars: ✭ 15 (+15.38%)
Mutual labels:  cloning
apfs-clone-checker
An utility to check if two files are clones in macOs APFS.
Stars: ✭ 30 (+130.77%)
Mutual labels:  cloning
BruteSniffing Fisher
hacking tool
Stars: ✭ 24 (+84.62%)
Mutual labels:  cloning
Kryo
Java binary serialization and cloning: fast, efficient, automatic
Stars: ✭ 5,247 (+40261.54%)
Mutual labels:  cloning

Git Transfer

This is a python script that will transfer all the branches and tags of your git project to a new remote repository.

Purpose

When we start working on a existing project, we may not checkout to all the branches while working on the project. So when we try to transfer the full repository we cannot push all the branches. This project is meant to solve the problem.

Prerequisites

  • Have to have python2.7 installed in your local machine.
  • Have to have git installed
  • It is better if you setup ssh with your bitbucket or github account
  • A freshly created repository

Installation

  • git clone [email protected]:rhasan33/git-transfer.git. I am using ssh here. You can use https as well
  • cd git-transfer
  • cp transfer.py /path/to/your/local/project/repository

Usage

  • cd /path/to/your/local/project/repository
  • Run python transfer.py
  • It will ask for your new git repository's ssh address.
  • Then it will ask for your old repositories remote alias (normally origin)
  • If it is not origin then the prompt will ask for y/n to be authenticated.
  • It will ask for the new remote's alias.
  • If the new remote alias cannot be similar to old remote alias.

That's it. Now you need to wait for the repository to be transferred.

Thanks

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].