2019年4月22日

rm git commit history

摘要: 删除.git文件夹可能会导致git存储库中的问题。如果要删除所有提交历史记录,但将代码保持在当前状态,可以按照以下方式安全地执行此操作: 1.尝试 运行 git checkout orphan latest_branch 2. 添加所有文件git add A 3. 提交更改git commit am 阅读全文

posted @ 2019-04-22 17:34 Leung_ss 阅读(108) 评论(0) 推荐(0) 编辑

git 使用学习

摘要: 1. git add :stage the file git rm cached : unstage the file git status :查看当前状态 vim readtest: new file git status 会发现 untracked files : r readtest git 阅读全文

posted @ 2019-04-22 17:24 Leung_ss 阅读(94) 评论(0) 推荐(0) 编辑

导航