While using mysysgit under Windows, I do not know how to regain control of the console windows after running git log in Git Bash. This seems simple yet I cannot find the key combination or command, so I find myself having to close the console window and relaunching a new instance of Git Bash to interact with git.
What is the key combination and/or command I need to exit the log viewer?
To exit from bash type exit and press ENTER . If your shell prompt is > you may have typed ' or " , to specify a string, as part of a shell command but have not typed another ' or " to close the string. To interrupt the current command press CTRL-C .
Browse to the desired Directory through Commands in Git Bash Open your Git Bash. Type the following command cd <path of the directory> and press enter.
Now when you open Git Bash and type pwd you should see the new folder is automatically where you are. To change your current directory to the users home directory type cd ~ . The ~ represents the home directory which is set in the %HOME% environment variable.
You can check the current setting by running git --exec-path . HOME isn't usually considered customizable (too many other things depend on it), but it's where Git looks for the global configuration file.
As said in the comments already, press the Q key.
Accepted answer worked for me: type 'q'
An alternate answer: Ctrl - z
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With