git-stitch-repo

Stitch several git repositories (merging git repository) into a git fast-import stream from Git-FastExport

Installation

$ perl -MCPAN -e shell
  
cpan[6]> i /fastexport/
	Distribution    BOOK/Git-FastExport-0.107.tar.gz
	Module  < Git::FastExport        (BOOK/Git-FastExport-0.107.tar.gz)
	Module  < Git::FastExport::Block (BOOK/Git-FastExport-0.107.tar.gz)
	Module  < Git::FastExport::Stitch (BOOK/Git-FastExport-0.107.tar.gz)
	4 items found

cpan[6]> install BOOK/Git-FastExport-0.107.tar.gz

cpan[6]> CTRL-D

Usage

git-stitch-repo will process the output of git fast-export --all --date-order on the git repositories given on the command-line, and create a stream suitable for git fast-import that will create a new repository containing all the commits in a new commit tree that respects the history of all the source repositories. Typical usage is like this:
git clone https://github.com/xxxx/A.git
git clone https://github.com/xxxxx/B.git

$ ls
A B

mkdir result
cd result
git init
git-stitch-repo ../A:folderA ../B:folderB | git fast-import

# pull both repository in a new branch for examples
git checkout -b newBranch
git pull . master-A
git pull . master-B

# when finished delete unused branches
git branch -d master-A 
git branch -d master-B 
comments powered by Disqus

You might like also

Evaluating Blockchain Projects With Token Economy Canvas
Business Model Canvas is a strategic management and lean startup template for developing new or documenting existing business models. It is a visual chart with elements describing a firm's or product's value proposition, infrastructure, customers, and finances. It assists firms in aligning their activities by illustrating potential trade-offs. Business Model Canvas: nine business model building blocks, Osterwalder, Pigneur & al. 2010 After reading this great article https://medium.com/@pstehlik/evaluating-blockchain-projects-with-token-economy-canvas-908bc1bab6 I felt the need to create an online editor. "Token Economy Canvas consists of …
1 Days ago
ICO friendliness rating index
Do you want to relocate your Blockchain company to an ICO friendly country? the ICO friendliness rating index is a interactive way to go through the list of countries that are hostile or favorable to ICO and Cryptocurrencies. Attention! a disclaimer is required: No Legal Advice or Attorney-Client Relationship: This chart is provided for informational purposes only and is not legal advice. This information is not intended to create, and receipt of it does not constitute, an attorney-client relationship. Recipient should …
1 Days ago
Joomla 3.8.7 and WTLib WinNMP 18.03
As always updating to the latest version of all your developement components is never without any issues, here is what  you need to take into consideration when upgrading Joomla 3.8.7 and WinNMP 18.03 Install WinNMp 18.03 from https://winnmp.wtriple.com/ in any directory, default is C:\WinNMP\ Unpack Joomla 3.8.7 to C:\WinNMP\WWW\dev for example When starting WinNMP, you can click reload, to see the site appearing    Now edit Nginx virtual server    And cut and paste the following config (you can get it from http://winnmp.wtriple.com/nginx.phpJoomla-Nginx-configuration)   …
28 Days ago
The cryptocurrency hack of Bob
Bob did a lot of (obvious) mistakes, but you will still be able to learn a lot by going through this mindmap. The names have been changed to protect the innocent. Hack of Bob   …
57 Days ago
Dilbert about blockchain
compilation of the famous dilbert.com about Blockchain and Bitcoin   …
57 Days ago
coin360.io current market capitalization of all main cryptocurrencies
Coin360.io • Market State • Coins and tokens • 1 day performance • Market cap Coin360.io is an online platform with the latest data on the situation on the cryptocurrency market with the indication of the current market capitalization of all main cryptocurrencies. The service was launched in 2017 by the resource Cointelegraph.com.The information about the cryptocurrency market capitalization is visualized by Coin360.io with the use of the brick diagram or tree-like map. Such visualization form allows seeing the total …
64 Days ago
All blockchain companies in Zug - Switzerland
The Swiss blockchain ecosystem, also known as the Crypto Valley, is home to a growing number of startups, service providers and other organizations. Powered bv https://cryptovalley.directory …
66 Days ago
All blockchain companies in Switzerland
Powered bv https://cryptovalley.directory …
66 Days ago
But what *is* a Neural Network? part 2
Neural Networks Demystified [Part 1: Data and Architecture] Neural Networks Demystified [Part 2: Forward Propagation] Neural Networks Demystified [Part 3: Gradient Descent] Neural Networks Demystified [Part 4: Backpropagation] Neural Networks Demystified [Part 5: Numerical Gradient Checking] Neural Networks Demystified [Part 6: Training] Neural Networks Demystified [Part 7: Overfitting, Testing, and Regularization] …
71 Days ago
But what *is* a Neural Network?
Here are the best video i've found on the subject. Moreover this channel is among the best also for learning mathematical concept in a very didactic way! Chapter 1, deep learning Gradient descent, how neural networks learn What is backpropagation really doing? Backpropagation calculus …
71 Days ago