瀏覽代碼

Initial commit

undefined
Nemeth Arpad 4 年之前
當前提交
f6ea326da0
共有 2 個文件被更改,包括 25 次插入0 次删除
  1. +25
    -0
      test.txt
  2. +0
    -0
      test2.txt

+ 25
- 0
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

+ 0
- 0
test2.txt 查看文件


Loading…
取消
儲存