我了解public IActionResult CreateJournalDetails(JournalDetailsViewModel vmodel)
{
vmodel = new JournalDetailsViewModel();
//some code here
return PartialView("_CreateJournalDetails", vmodel);
}
的作用;我刚刚看到您也可以在git cherrypick commitA..commitB
中使用..。我看不到为什么有必要在那儿。
git diff
的含义是否一致? ..
在..master
中是什么意思?
答案 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”