2
有沒有辦法讓git show
命令在查看提交時顯示文件的全部內容?例如:如果目前有類似Git顯示整個文件的變化
foo.cpp
+++ int main() {
+++ std::cout << "HELLO" << std::endl;
+++ }
我想輸出地說:
foo.cpp
#include <stdio> //assuming this was from an earlier commit
+++ int main() {
+++ std::cout << "HELLO" << std::endl;
+++ }
有沒有一種簡單的方法來做到這一點?