Claire
Claire

Reputation: 101

Command for viewing overall git status regardless of location in directory

Is there a way to see a big-picture status in git? I'm new to git and end up losing files based on stashing them in the wrong directory or working on the wrong branch, and I'd like to find a command that gives me an overview of everything, regardless of where in the directory I am or which branch I currently have checked out. Does that exist? (I'm using bash)

Upvotes: 1

Views: 58

Answers (3)

mayo
mayo

Reputation: 4085

Also some Git Client like SourceTree is very useful to see what is going on.

Friendly but will hide the most of the git commands from you. So a good combo can be use terminal to do things and in case of confusion or conflicts you can get some "help" from the Git Client.

Upvotes: 0

blashser
blashser

Reputation: 1031

Try with the default frontends of git

  • gitk : Frontend to see your history of commits. Similar to git log.
  • git GUI : Frontend to do commits, pushes, add remotes, prune.

Upvotes: 1

l0b0
l0b0

Reputation: 58908

  • Show all commits: git log --all (try --graph and --decorate for more info)
  • Show commits which have at some time been at the head of the current branch (useful for restoring deleted or rebased-beyond-recognition commits): git reflog
  • Show all branches with their latest commit hash and first line of commit message:git branch --verbose
  • Show all remotes: git remote --verbose

Upvotes: 1

Related Questions