| @@ -0,0 +1,25 @@ | |||||
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyyyyy | |||||
| zzzzzzzzzz | |||||
| ssss | |||||
| git checkout --orphan newBranch | |||||
| git add -A # Add all files and commit them | |||||
| git commit -m 'stackof solution2' | |||||
| git branch -D master # Deletes the master branch | |||||
| git branch -m master # Rename the current branch to master | |||||
| git push -f origin master # Force push master branch to github | |||||
| git gc --aggressive --prune=all # remove the old files | |||||
| / | |||||
| git ls-files --others --exclude-standard > /tmp/test2.txt | |||||
| mv .git/config /tmp/ | |||||
| rm -rf .git | |||||
| git init | |||||
| git add . | |||||
| mv /tmp/config .git/ | |||||
| cat /tmp/test2.txt | xargs -0 git rm --cached | |||||
| git commit -m "Initial commit" | |||||
| git push -u --force origin master | |||||