nothing added to commit but untracked files present

简介: 前言今天在git commit时候遇到如下问题On branch masterYour branch is up-to-date with 'origin/master'.Untracked files: mybatisMysql/src/ mybatisxml/nothing added to commit but untr

前言

今天在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
AI 代码解读

原因

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

解决办法

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

eumji
+关注
目录
打赏
0
0
0
0
3
分享
相关文章
Error loading saved preferences: ~/.vuerc may be corrupted or have syntax errors. Please fix/delete
Error loading saved preferences: ~/.vuerc may be corrupted or have syntax errors. Please fix/delete
【SourceTree】Your local changes to the following files would be overwritten by merge【解决办法】
【SourceTree】Your local changes to the following files would be overwritten by merge【解决办法】
解决报错:Remove untracked files, stash or commit any changes, and try again
解决报错:Remove untracked files, stash or commit any changes, and try again
133 1
error: Your local changes to the following files would be overwritten by merge
error: Your local changes to the following files would be overwritten by merge
git更新:Your local changes to the following files would be overwritten by merge
git更新:Your local changes to the following files would be overwritten by merge
309 0
git解决error: The following untracked working tree files would be overwritten by c
git解决error: The following untracked working tree files would be overwritten by c
1869 0
Git - Error:The following untracked working tree files would be overwritten by checkout
Git - Error:The following untracked working tree files would be overwritten by checkout
861 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等