Need help exiting git

Hi all - 

Kind of a newbie. My terminal is stuck at Git Master. I can’t exit to go back to my regular terminal interface. Tried q, :wp, exit, quit…I don’t need to git anything, I just want to use my terminal.

Help?

Thanks!

Maggie

3 Likes

Hey Maggie,

What did you type to “get stuck in git master”?

git is not a Terminal “app” that you “open” and have to “quit”.

After every command, you’re back in the Terminal.

  • Maybe you have a prompt line that shows what branch you’re currently in, and that’s showing “master”?
    • if you cd .. out of your current directory, does the “master” part go away?
  • Or you might be using a Terminal-based program that uses Git and can’t close that?
    • In which case, that’s an issue with closing that particular program
2 Likes

Can you please share a screenshot of your terminal?  That will help us figure out what’s going on.

Hi all I hope everybody doing great :smiley lol::robothappy:

if you want to stop master in your any where folder, then you can remove completely master.

try this 

git rm .git

_ :rotating_light: EDITED BY MODERATOR: SEE MODERATOR NOTE BELOW BEFORE TAKING THIS ACTION _

1 Like

:rotating_light: PLEASE NOTE: executing the command that @arduino731 specifies above, if done incorrectly or on some versions of Git, may _ COMPLETELY DESTROY _ your Git repository, not simply “stop master”. :rotating_light: 

5 Likes

I am having the same problem. Here is a screenshot of my terminal: https://www.screencast.com/t/2sxFWiwYRx

I tried closing iterm2, and reopening it, but I’m still having the same starting point with "  ➜ ~ git:(master) ✗  "

1 Like

You’ve got a profile customization that tells you:

  1. When you’re in a directory that is contained in a Git repository AND
  2. What branch you’re on when item 1 above is true

At some point, you probably accidentally ran git init in your home directory. This caused the “git:(master)” to always appear in your prompt. If this is something you don’t want, you can execute a command to delete the Git repository.

:rotating_light: If executed incorrectly, this command could lose lots and lots of data! Be sure you know what you’re doing before you expand this and execute the contained command. :rotating_light:

rm -rf ~/.git
19 Likes

Screen Shot 2019-01-21 at 14.08.04.pngi got problems in exiting the git from my terminal

This topic has been locked because the solution to the problem requires deleting things that could cause significant loss of data if handled incorrectly. Since the correct solution has already been given, no further answers are necessary.

2 Likes