hg summary 的 git 等价物是什么?
What is the git equivalent of hg summary?
'hg summary' 的 git 是什么?特别是 'hg summary --remote' ??
我看过 'hg in'、'hg out' 和许多其他翻译命令的翻译,但我从未见过 'summary'。我很懒惰,想知道 'hg summary --remote' 会用一个简单的命令告诉我的一切。我是否必须编写自定义脚本,或者 git 会告诉我吗?
作为参考,下面是 'hg summary' 命令的作用:
来自 https://www.mercurial-scm.org/repo/hg/help/summary
hg summary [--remote]
aliases: sum
summarize working directory state
This generates a brief summary of the working directory state,
including parents, branch, commit status, and available updates.
With the --remote option, this will check the default paths for
incoming and outgoing changes. This can be time-consuming.
Returns 0 on success.
options:
--remote check for push and pull
The 'summary' command will summarize the state of the working
directory. Command names may be abbreviated, so entering just 'hg sum'
is enough:
$ hg sum
parent: 9632:16698d87ad20 tip
util: use sys.argv[0] if $HG is unset and 'hg' is not in PATH
branch: default
commit: (clean)
update: (current)
Here commit: (clean) means that there no local changes, update:
(current) means that the checked out files (in the working directory)
are updated to the newest revision in the repository.
尝试git status
。这将显示我认为您正在寻找的信息。
我自己从 hg 回到 git,这就是我所做的。
git show -s
-s
隐藏差异
'hg summary' 的 git 是什么?特别是 'hg summary --remote' ??
我看过 'hg in'、'hg out' 和许多其他翻译命令的翻译,但我从未见过 'summary'。我很懒惰,想知道 'hg summary --remote' 会用一个简单的命令告诉我的一切。我是否必须编写自定义脚本,或者 git 会告诉我吗?
作为参考,下面是 'hg summary' 命令的作用: 来自 https://www.mercurial-scm.org/repo/hg/help/summary
hg summary [--remote]
aliases: sum
summarize working directory state
This generates a brief summary of the working directory state, including parents, branch, commit status, and available updates.
With the --remote option, this will check the default paths for incoming and outgoing changes. This can be time-consuming.
Returns 0 on success.
options:
--remote check for push and pull
The 'summary' command will summarize the state of the working directory. Command names may be abbreviated, so entering just 'hg sum' is enough:
$ hg sum parent: 9632:16698d87ad20 tip util: use sys.argv[0] if $HG is unset and 'hg' is not in PATH branch: default commit: (clean) update: (current)
Here commit: (clean) means that there no local changes, update: (current) means that the checked out files (in the working directory) are updated to the newest revision in the repository.
尝试git status
。这将显示我认为您正在寻找的信息。
我自己从 hg 回到 git,这就是我所做的。
git show -s
-s
隐藏差异