-1

I am a beginner and I was playing around with git. Now whenever I start my command shell, it always says "master" at the prompt: like this.

How do I make it go back?

Inigo
  • 12,186
  • 5
  • 41
  • 70

1 Answers1

2

It looks like you ran git init on your home directory. What this did was turn your home directory into a git repository, and your shell is configured to give you git information when you are in a git repository.

To confirm this type ls -a. This will list all the hidden "dot" directories in your current directory. If you see one named .git, it confirms your current directory is a git repo. If you were just playing around, and don't want your home directory to be a repo anymore, you can simply delete the .git directory. Anything you saved (committed) using git will also be gone when you do that, so be sure that's what you want.

Please let me know if you have any questions!

Inigo
  • 12,186
  • 5
  • 41
  • 70