[英]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. 我有一个新的服务器提供程序,没有安装tig,我很确定这些人有很好的理由。 How do you browse git logs without tig?
如何在没有tig的情况下浏览git日志?
Not really what I am looking for: 并不是我要找的东西:
$ git log --graph --color --oneline --all --decorate
# how can I browse things with this? $ git log --graph --color --oneline --all --decorate
#我如何浏览这个东西?
$ git log -p
# more like diff-less -combo, not really browsing. $ git log -p
#更像diff-less -combo,不是真正的浏览。
$ gitk
# I am on console, although I could sshfs things but I want to browse things like with tig $ gitk
#我在控制台上,虽然我可以用sshfs进行操作,但是我想用tig浏览
您可以尝试一下,我的个人配置alias.lp
git log --graph --pretty=format:'%Cgreen%h%Creset -%C(yellow)%d%Creset %s %Cred(%cr)%Creset%C(yellow)<%an>'
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. git log的输出将通过
less
路径传递,这将允许您上下查看早期或以后的历史记录。 less
has a lot of functionality such as searching for certain strings, etc: http://unixhelp.ed.ac.uk/CGI/man-cgi?less less
具有许多功能,例如搜索某些字符串等: http : //unixhelp.ed.ac.uk/CGI/man-cgi? less
You should be able to use gitk --all
to see everything as well. 您应该也可以使用
gitk --all
来查看所有内容。
From what you've said, I'd suggest one of these: 根据您的意见,我建议其中之一:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.