小编Hun*_*sek的帖子

Git问题与Vagrant中的共享文件夹有关

我在使用Vagrant之前从未见过这个问题,所以我希望这对某人有意义.我有一个包含git存储库的文件夹,它与运行CentOS 6.5的Vagrant机器同步,并看到与Git的一些不一致.

在我的主机(Mac OSX)上,如果我运行,git status我得到以下内容:

 ~/Folder/repo$ git status
 On branch master
 Your branch is up-to-date with 'origin/master'.
 nothing to commit, working directory clean
Run Code Online (Sandbox Code Playgroud)

但如果我在我的流浪盒中运行相同的命令,我会得到以下内容:

vagrant@localhost ~/repo$ git status                                                                                                                 master
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   .codeclimate.yml
#   modified:   .gitattributes
#   modified:   .gitignore
#   modified:   CONTRIBUTING.md
#   modified:   app/commands/.gitkeep
# …
Run Code Online (Sandbox Code Playgroud)

virtualbox vagrant centos6

3
推荐指数
1
解决办法
1599
查看次数

标签 统计

centos6 ×1

vagrant ×1

virtualbox ×1