在android studio中删除旧的并添加新的git [英] Remove old and add new git in android studio
本文介绍了在android studio中删除旧的并添加新的git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图用 git 配置 android studio 并搞砸了.
I have tried to configure android studio with git and messed up.
如何彻底删除旧的 git,我可以创建新的?
How to completely remove old git that I could create new one?
推荐答案
为了删除当前的 git 存储库并创建一个新的存储库,您需要:
In order to drop the current git repository and create a new one you need to:
进入项目目录:
cd PROJECT_DIRECTORY
删除所有 git 特定文件:rm -rf $(find . -name ".git*")
Remove all the git specific files: rm -rf $(find . -name ".git*")
初始化一个新的git仓库:git init
Initialize a new git repository: git init
这不会删除您项目的文件,只会删除 git configs
This doesn't remove your project's files, only git configs
这篇关于在android studio中删除旧的并添加新的git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文