Post

Replies

Boosts

Views

Activity

Is git already installed when buying a new Macbook?
Greetings, due to the current situation (Corona-Virus) I had to download Xcode, MS Visual Studio and Visual StudioCode on my personal MacBook Pro (2017; no Touch Bar). These applications were all asking for git (git-scm) and I have accepted. After some regrets I have decided to delete all applications again. I was able to delete Xcode, MS VS and VS Code but there was no program with the name git“, but hundreds of files with a big red „h“ on them, that I have never seen before. I used the function for a secured system restart and at the end I was reinstalling MacOS BigSur. Every time I logged in my entire display was black and my cursor in a neon blue I installed a new MacOS again and now everything seems to be fine (at least no black screen). I used some codes, I got from google, on my terminal (sudo rm -rf /usr/bin/git/), I am afraid that it has done more damage than it was helpful. Any idea how I can reverse the last 24 hours? Summary: Is Git already installed when I buy a new MacBook? If not, how can I delete all unnecessary files? Has „sudo rm -rf /usr/bin/git/„ changed anything? My terminal said that I was having Apple Git 128. After deleting XCodes there seems to be no git $ which git /usr/bin/git $ git --version xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Sorry for all the questions, but I am totally unskilled when it is about using git. Kind Regards,
4
0
1.0.0k
Jan ’21