hhh
hhh

Reputation: 52840

How can I browse Git Logs without Tig?

I have a new server provider and they have no tig installed, I am pretty sure the guys have some good reasons for that. How do you browse git logs without tig?

Not really what I am looking for:

  1. $ git log --graph --color --oneline --all --decorate # how can I browse things with this?

  2. $ git log -p # more like diff-less -combo, not really browsing.

  3. $ gitk # I am on console, although I could sshfs things but I want to browse things like with tig

Upvotes: 0

Views: 680

Answers (3)

xhlwill
xhlwill

Reputation: 399

you could try this, my personal config alias.lp

git log --graph --pretty=format:'%Cgreen%h%Creset -%C(yellow)%d%Creset %s %Cred(%cr)%Creset%C(yellow)<%an>'

Upvotes: 1

wjl
wjl

Reputation: 7755

From what you've said, I'd suggest one of these:

  1. git clone (maybe with --mirror) then just use tig. Advantages: it's all local, tig will be fast. Disadvantages: you have to keep your mirror copy up-to-date.
  2. sshfs, then just use tig. Advantages: you are using your local tig, configured exactly how you want it, directly on the remote repository. Disadvantages: it might run a bit slow depending on sshfs network performance & caching.

Upvotes: 1

Adam Dymitruk
Adam Dymitruk

Reputation: 129564

The output of the git log will be passed through less which will allow you to go up and down to view earlier or later history. less has a lot of functionality such as searching for certain strings, etc: http://unixhelp.ed.ac.uk/CGI/man-cgi?less

You should be able to use gitk --all to see everything as well.

Upvotes: 1

Related Questions