我想用git repo进行增量更新! 服务器保存了一个文件(repo-commit-version.txt)
例:(7ed656f60ae0bb2a55ed632d29999a3a45313deb)
现在想要将最后一个repo版本自动部署到Server
如何获取(服务器repo-commit-version.txt中的最后一个repo版本)更改文件[modified / create / delete]列表?
git log?git diff?~~~
答案 0 :(得分:0)
目前还不清楚你在问什么,但听起来你要么想知道提交更改了哪些文件:
git diff --stat COMMIT_ID --
或者,提交之间发生了什么变化:
git diff --stat SRC_COMMIT_ID DST_COMMIT_ID --
例如,它是Python鼻子库,我明白了:
$ git diff --stat release_1.3.0 HEAD --
AUTHORS | 1 +
CHANGELOG | 7 ++
doc/.templates/indexsidebar.html | 18 +----
doc/usage.rst | 5 ++
.../test_multiprocess/multiprocess.rst | 2 +-
functional_tests/support/issue649/test.py | 9 +++
functional_tests/support/issue680/test.py | 3 +
functional_tests/support/issue700/test.py | 4 +
functional_tests/support/issue720/test.py | 6 ++
functional_tests/test_failuredetail_plugin.py | 14 ++++
functional_tests/test_issue_649.py | 18 +++++
functional_tests/test_xunit.py | 32 ++++++++
nose/commands.py | 11 ++-
nose/config.py | 5 +-
nose/core.py | 9 ++-
nose/failure.py | 3 +-
nose/importer.py | 2 +-
nose/plugins/capture.py | 22 +-----
nose/plugins/debug.py | 15 ++--
nose/plugins/doctests.py | 2 +
nose/plugins/failuredetail.py | 8 +-
nose/plugins/xunit.py | 75 +++++++++----------
nose/pyversion.py | 65 +++++++++++++++-
nose/util.py | 2 +-
unit_tests/support/doctest/.gitignore | 1 +
.../support/doctest/noname_wrapped.not_py | 6 ++
unit_tests/support/doctest/noname_wrapper.py | 12 +++
unit_tests/support/init_prefix_bug/__init__.py | 1 +
.../support/init_prefix_bug/__init__not.py | 1 +
unit_tests/test_core.py | 33 +++++++-
unit_tests/test_doctest_no_name.py | 34 +++++++++
unit_tests/test_importer.py | 10 +++
unit_tests/test_xunit.py | 34 ---------
33 files changed, 344 insertions(+), 126 deletions(-)
请注意,由于屏幕宽度,某些路径已被截断。您可以使用--stat
选项的参数来控制宽度。您可以运行git help diff
或查看diff man page以获取更多信息。