忍受我,我对Github完全陌生,但有TortoiseSVN,差异,添加,提交等方面的经验。
所以我只是克隆https://github.com/faux123/Nexus_5/想要四处寻找。
我注意到在桌面上查看克隆的第一件事是大约有10个文件具有我未提及的未提交更改。新内容,而不仅仅是不同的行结尾......
为什么会这样,我该如何让它停止?
$ git status
# On branch kk_mr2
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: include/linux/netfilter/xt_CONNMARK.h
# modified: include/linux/netfilter/xt_DSCP.h
# modified: include/linux/netfilter/xt_MARK.h
# modified: include/linux/netfilter/xt_RATEEST.h
# modified: include/linux/netfilter/xt_TCPMSS.h
# modified: include/linux/netfilter_ipv4/ipt_ECN.h
# modified: include/linux/netfilter_ipv4/ipt_TTL.h
# modified: include/linux/netfilter_ipv6/ip6t_HL.h
# modified: net/netfilter/xt_DSCP.c
# modified: net/netfilter/xt_HL.c
# modified: net/netfilter/xt_RATEEST.c
# modified: net/netfilter/xt_TCPMSS.c
#
no changes added to commit (use "git add" and/or "git commit -a")
这里是其中一个文件的示例,xt_CONNMARK.h
@@ -1,6 +1,31 @@
-#ifndef _XT_CONNMARK_H_target
-#define _XT_CONNMARK_H_target
+#ifndef _XT_CONNMARK_H
+#define _XT_CONNMARK_H
-#include <linux/netfilter/xt_connmark.h>
+#include <linux/types.h>
-#endif /*_XT_CONNMARK_H_target*/
+/* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com>
+* by Henrik Nordstrom <hno@marasystems.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+enum {
+ XT_CONNMARK_SET = 0,
+ XT_CONNMARK_SAVE,
+ XT_CONNMARK_RESTORE
+};
+
+struct xt_connmark_tginfo1 {
+ __u32 ctmark, ctmask, nfmask;
+ __u8 mode;
+};
+
+struct xt_connmark_mtinfo1 {
+ __u32 mark, mask;
+ __u8 invert;
+};
+
+#endif /*_XT_CONNMARK_H*/
答案 0 :(得分:3)
这是因为文件名案例问题。
在include/linux/netfilter
中,xt_CONNMARK.h
也存在xt_connmark.h
,位于同一文件夹中。
Windows作为不区分大小写的环境,不知道如何处理它:最后一个覆盖第一个。
include/linux/netfilter/xt_CONNMARK.h
include/linux/netfilter/xt_connmark.h
include/linux/netfilter_ipv4/ipt_ECN.h
include/linux/netfilter_ipv4/ipt_ecn.h
您的core.ignorecase
config is set to true
很可能会让git忽略该问题并使用xt_CONNMARK.h
覆盖xt_connmark.h
。
换句话说,这个仓库并不打算在Windows上克隆。