Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Escaping git bash after reflog, or commit, etc

Tags:

git

bash

When I'm using something like git reflog, I lose my ability to type in commands. I don't know what you look up, because I'm relatively new to bash.

So, what's the terminology I can use to go back to running git commands after running a reflog?

like image 462
Morgan Delaney Avatar asked Oct 20 '11 21:10

Morgan Delaney


People also ask

How do I exit git after diff?

Use ONLY q+enter to exit. It's possible to break out by repeatedly typing q+enter+q+enter+q+enter until the end of time no matter what the console shows.

What is the use of git Reflog?

Git keeps track of updates to the tip of branches using a mechanism called reference logs, or "reflogs." Many Git commands accept a parameter for specifying a reference or "ref", which is a pointer to a commit. Common examples include: git checkout. git reset.

Does git push Reflog?

Answer is no. Anonymous objects--objects that are only referenced by your reflog--are private to the local repo.


1 Answers

Press q for quit and you will be back to the normal shell. CTRL + C would work as well.

like image 55
manojlds Avatar answered Sep 30 '22 18:09

manojlds