..在git命令中是什么意思?

时间:2018-10-11 07:06:55

标签: git

我了解public IActionResult CreateJournalDetails(JournalDetailsViewModel vmodel) { vmodel = new JournalDetailsViewModel(); //some code here return PartialView("_CreateJournalDetails", vmodel); } 的作用;我刚刚看到您也可以在git cherrypick commitA..commitB中使用..。我看不到为什么有必要在那儿。

git diff的含义是否一致? ....master中是什么意思?

2 个答案:

答案 0 :(得分:1)

相关的Git手册man git-diff说:

git diff [<options>] <commit> <commit> [--] [<path>...]
    This is to view the changes between two arbitrary <commit>.

git diff [<options>] <commit>..<commit> [--] [<path>...]
    This is synonymous to the previous form. If <commit> on one
    side is omitted, it will have the same effect as using HEAD
    instead.

答案 1 :(得分:0)

仅用于指定范围。我会用“ to”一词来代替它,例如“ commitA to commitB”