markdown 清除git历史 - Brisanje git historije

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 清除git历史 - Brisanje git historije相关的知识,希望对你有一定的参考价值。

### Remove the history from 
```    
rm -rf .git
```

### recreate the repos from the current content only
```
git init
git add .
git commit -m "Initial commit"
```

### push to the github remote repos ensuring you overwrite history

```
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
git push -u --force origin master

```

以上是关于markdown 清除git历史 - Brisanje git historije的主要内容,如果未能解决你的问题,请参考以下文章