Skip to content

Instantly share code, notes, and snippets.

@YongmingZhao
Last active March 30, 2022 12:53
Show Gist options
  • Save YongmingZhao/8ef2627032e6d22d3993200c351f9d7c to your computer and use it in GitHub Desktop.
Save YongmingZhao/8ef2627032e6d22d3993200c351f9d7c to your computer and use it in GitHub Desktop.
Git clone a repository and push to another
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