當我運行git diff
,我得到這個: `如何在退出`git diff`時將`git diff`保存到終端結果中?
diff --git a/gllue/common/dataimport/synccandidateimport.py b/gllue/common/dataimport/synccandidateimport.py
index f6d18c8..86cf6d9 100644
--- a/gllue/common/dataimport/synccandidateimport.py
+++ b/gllue/common/dataimport/synccandidateimport.py
@@ -302,6 +302,7 @@ class SyncCandidateImport(CandidateDataImport):
def process_default_value(self, column):
now = datetime.datetime.now()
+ hello world
buildin_fields_map = {field: now for field in self.buildin_fields}
default_value = self.default_value_map.get(column.field,
buildin_fields_map.get(column.field.name))
`
當我退出git diff
,這些信息將最終消失,我怎麼退出git diff
後更改順序,我仍然可以看到終端頂部的信息。
- 列表項
更好的是,你可以管它:'git diff | vim -R-' –