Last active
June 20, 2023 16:47
-
-
Save larry0x/79a7000277b81f7d6938e2db3638f673 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
# ---------------------------------- method 1 ---------------------------------- | |
git clone https://github.com/cosmos/cosmos-sdk.git | |
git clone https://github.com/larry0x/simapp.git | |
cd cosmos-sdk | |
git checkout v0.47.2 | |
git subtree split -P simapp -b split | |
cd ../simapp | |
git remote add source ../cosmos-sdk | |
git pull source split | |
# ---------------------------------- method 2 ---------------------------------- | |
# https://medium.com/@ayushya/move-directory-from-one-repository-to-another-preserving-git-history-d210fa049d4b | |
git clone https://github.com/cosmos/cosmos-rust.git | |
git clone https://github.com/larry0x/neutron-proto.git | |
cd cosmos-rust | |
git filter-branch --subdirectory-filter proto-build -- --all | |
git reset --hard | |
git gc --aggressive | |
git prune | |
git clean -fd | |
mkdir proto-build | |
mv * proto-build | |
git add -A | |
git commit -m 'move files' | |
cd ../neutron-proto | |
git remote add source ../../cosmos/cosmos-rust | |
git pull source main --allow-unrelated-histories | |
git remote rm source | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment