Git Command Line

来源:互联网 发布:zbrush4r7 mac版 破解 编辑:程序博客网 时间:2024/06/12 03:17

All the operations are under your Android Studio project folder, please firstly locate to that folder.

1. Delete the local repository, avoiding endless prompts.

$ rm -rf .git

2. Or to delete .gitignore and .gitmodules if any.

$ rm -rf .git*
3. To see if hidden folder .git is still there.

$ ls -lah
4. To view hidden folders in Finder.
defaults write com.apple.finder AppleShowAllFiles TRUEkillall Finder
5. To check the remote repository
$ git remote -v
6. To delete the origin remote

$ git remote rm origin









0 0
原创粉丝点击