From f6ea326da0451f27c904b7c929ed031a139468fd Mon Sep 17 00:00:00 2001 From: Nemeth Arpad Date: Thu, 17 Jun 2021 10:51:29 +0200 Subject: [PATCH] Initial commit --- test.txt | 25 +++++++++++++++++++++++++ test2.txt | 0 2 files changed, 25 insertions(+) create mode 100644 test.txt create mode 100644 test2.txt diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..f5c16b9 --- /dev/null +++ b/test.txt @@ -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 \ No newline at end of file diff --git a/test2.txt b/test2.txt new file mode 100644 index 0000000..e69de29