Last active
March 30, 2022 12:53
-
-
Save YongmingZhao/8ef2627032e6d22d3993200c351f9d7c to your computer and use it in GitHub Desktop.
Git clone a repository and push to another
This file contains 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
git clone -b v4.1.2-beta --depth 1 https://github.com/poanetwork/blockscout | |
cd blockscout | |
git remote rename origin upstream | |
git remote add origin [email protected]:YongmingZhao/blockscout.git | |
git branch -f master HEAD | |
git checkout master | |
git fetch --unshallow upstream | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment