吉特说,在一台计算机(Windows)中完成的所有提交,但不是另一台计算机(Mac)用于网络驱动器



这是用于网络驱动器的。我和我的同事都在同一目录中,并且都使用git bash。

在Windows计算机上(这是正确的一个(:

$ git status
On branch master
nothing to commit, working tree clean

在Mac上(这是不正确的(:

On branch master
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:   .gitignore
...[some more files]...
no changes added to commit (use "git add" and/or "git commit -a")

我首先怀疑这是由于Mac一开始无法看到隐藏的.git文件夹,但是不向此无能为力。

如果这很有帮助,我将此网络驱动器放在Windows中的字母名称S:/下,但是在Mac中,该目录正在通过Volumes/访问。我对Mac的了解不足以知道这是否重要。

关于从哪里开始的任何想法都非常好。

您正在尝试像服务器一样使用共享驱动器,这就是问题所在。Windows和Mac有不同的规则,围绕看到隐藏的文件可能会在桑巴握手中丢失。将您的存储库推到主持存储库的云服务,例如GitHub,Bitbucket等。

相关内容

最新更新