Git clear local and remote repo and start over
Create a new folder and copy the files you need if any into the new folder.
Example below with no files
mkdir project-name-here
cd project-name-here
git init
git remote add origin git@github.com:user/project-here.git
git add .
git commit -m "Initial commit"
git push -u origin master --force
You can clone the repo and delete .git
folder so there is no commit history on local copy and github repo.
git clone git@github.com:user/project-here.git
cd project-name-here
rm .git -rf
git init
git remote add origin git@github.com:user/project-here.git
git add .
git commit -m "Initial commit"
git push -u origin master --force