Skip to content

Instantly share code, notes, and snippets.

@startergo
Last active December 18, 2024 03:49
Show Gist options
  • Save startergo/3b60be0c00088d4be3c27b893bd65ee9 to your computer and use it in GitHub Desktop.
Save startergo/3b60be0c00088d4be3c27b893bd65ee9 to your computer and use it in GitHub Desktop.
Clone remote repo and push to your repo
git show-ref
git remote add <remote_Branch> <remote_repo> 
git fetch
git add .
git commit -m 'reinitialized files'
git push -f --no-thin https:<your repo> HEAD:refs/heads/<remote branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment