git 中的这些符号是什么意思?
What does those symbol mean in a git pull?
Example from terminal
例如:
27 ++++--
27、4'+' 和 2'-' 是什么意思?
嗨,谢谢,但我想知道为什么它的 4x + 和 1x - (++++-) 而不是 8x + 和 2x -(++++++++--) 有时我看到 + +-- 为什么不是 +- (50%:50%),?
在git
中,+
表示添加,-
表示删除。
在您附加的图片中 25 ++++-
;总共有 25 个更改,其中(大约)4x
是添加行,1x
是删除行。这里x = 5
在下一行中 14 ++-
增加了大约 2 倍的行,删除了 1 倍的行。
为了更好地理解,这里有一个 git
差异:
diff --git a/Src/Device_Config.c b/Src/Device_Config.c
index 05116f6..b177430 100644
--- a/Src/Device_Config.c
+++ b/Src/Device_Config.c
@@ -6,7 +6,7 @@
#include "Device_Config.h"
-#include "userInterface.h"
+#include "UserInterface.h"
#include "wifi.h"
#include "Log.h"
#include "Timezones.h"
如您所见,一行是 deleted
,一行是 added
。
Example from terminal
例如:
27 ++++--
27、4'+' 和 2'-' 是什么意思?
嗨,谢谢,但我想知道为什么它的 4x + 和 1x - (++++-) 而不是 8x + 和 2x -(++++++++--) 有时我看到 + +-- 为什么不是 +- (50%:50%),?
在git
中,+
表示添加,-
表示删除。
在您附加的图片中 25 ++++-
;总共有 25 个更改,其中(大约)4x
是添加行,1x
是删除行。这里x = 5
在下一行中 14 ++-
增加了大约 2 倍的行,删除了 1 倍的行。
为了更好地理解,这里有一个 git
差异:
diff --git a/Src/Device_Config.c b/Src/Device_Config.c
index 05116f6..b177430 100644
--- a/Src/Device_Config.c
+++ b/Src/Device_Config.c
@@ -6,7 +6,7 @@
#include "Device_Config.h"
-#include "userInterface.h"
+#include "UserInterface.h"
#include "wifi.h"
#include "Log.h"
#include "Timezones.h"
如您所见,一行是 deleted
,一行是 added
。