My shell prompt looks like this: ➜ ~ git:(master) ✗. How can I get my normal prompt back?

前端 未结 10 1875
别跟我提以往
别跟我提以往 2021-01-03 07:56

My normal terminal command line has suddenly disappeared and has been replaced by this git command line ➜ ~ git:(master) ✗.

How do I get rid of this an

10条回答
  •  温柔的废话
    2021-01-03 08:36

    I'm assuming you entered "git init" like I did. It took me a while to figure this out, but when you entered "git init" you created a hidden git folder named ".git".

    You can see the folder by going to your home directory and typing "ls -a".

    Simply remove the file (rm -rf .git), and the prompt will magically disappear.

提交回复
热议问题