Created
July 14, 2014 03:58
-
-
Save hiraiva/f2214404d3a5e99bc248 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export REPO="myrepo" | |
export SRC="my_src_branch" | |
export DST="my_dst_branch" | |
git checkout -b $REPO $REPO/$SRC | |
git filter-branch -f --tree-filter "mkdir $REPO && git mv -k ./* $REPO/" | |
git checkout $DST | |
git merge $REPO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment