12篇 git related articles

git: error: unable to locate xcodebuild

The issue is:
When I open pycharm git project, it displays the error:
WX20190806-221556.png

Cannot Run Git
git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly! git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch

And I try git command in the Terminal, it's same error.

There I found the solution on stackoverflow:
Run this command:
sudo xcode-select --switch /Library/Developer/CommandLineTools/

WX20190806-222115.png

More ~

Git: remove untracked files

To remove directories, run
git clean -f -d or git clean -fd

To remove ignored files, run
git clean -f -X or git clean -fX

To remove ignored and non-ignored files, run
git clean -f -x or git clean -fx

More ~