Skip to content

Instantly share code, notes, and snippets.

@caporro
Last active May 9, 2019 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caporro/b0f1b8e524fc3805e9d589d4c6132d95 to your computer and use it in GitHub Desktop.
Save caporro/b0f1b8e524fc3805e9d589d4c6132d95 to your computer and use it in GitHub Desktop.
Create new clean repository from a clone of a remote repository, Clone repo, clean, init and pull
git clone git://github.com/caporro/oldprojectname.git project
cd project
rm -rf .git
git init 
git add * 
git commit -m 'init commit from oldprojectname'
git remote add origin https://github.com/caporro/newprojectname.git
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment