nothing added to commit but untracked files present--git commit时

在git commit时候遇到如下问题

On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
        mybatisMysql/src/
        mybatisxml/
nothing added to commit but untracked files present
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

原因

出现这个问题的原因是在于对应的文件或者对应目录下的文件没有添加.

解决办法

>git add mybatisMysql/src/
>git add mybatisxml/
git com -m “xxxxx”
git push origin master

猜你喜欢

转载自blog.csdn.net/qq_28874687/article/details/81239961