Clean commits
rm -rf .git
Step 2: reconstruct the Git repo with only the current content
git init
git add .
git commit -m "Initial commit"
Step 3: push to GitHub.
git remote add origin <github-uri>
git push -u --force origin master
Za izbris datotek:
1.) Delete everything in your repository folder
2.) run git rm * to tell git to remove all files (check with git status whether there are any unstaged files left)
3.) do a git commit -a -m "commitmessage" a git push origin master to delete all files on the remote git server
4.) check if you have an empty remote repository now
5.) copy all new files to the local repository folder
6.) run git add * to tell git to add all new files (check with git status whether there are any unstaged files left)
7.) commit and push the new files