如何以相反顺序登录? [英] How to git log in reverse order?

查看:99
本文介绍了如何以相反顺序登录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  hg log -r:

我最近得知我可以用hg log以相反的顺序打印历史记录:

所以当然我试过了:

  git log -r:

好的,它不起作用。那么在git中做同样的事情的命令是什么? 使用 - reverse / code>选项:

  git log --reverse 


I recently learned that I can get hg log to print the history in reverse order with:

hg log -r :

So of course I tried:

git log -r :

Well, it didn't work. So what is the command to do the same thing in git?

解决方案

Use the --reverse option:

git log --reverse

这篇关于如何以相反顺序登录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆