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

原因

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

解决办法

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

目录
相关文章
|
6月前
|
存储 开发工具 git
【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【解决办法】
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
解决报错:Remove untracked files, stash or commit any changes, and try again
解决报错:Remove untracked files, stash or commit any changes, and try again
104 1
【异常】svn: E200009: Commit failed (details follow)/both sides of the move must be committed together的解决办法
svn: E200009: Commit failed (details follow)/both sides of the move must be committed together的解决办法
676 0
subclipse同步冲突问题A conflict in the working copy obstructs the current operation
subclipse同步冲突问题A conflict in the working copy obstructs the current operation
subclipse同步冲突问题A conflict in the working copy obstructs the current operation
|
开发工具 git
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
268 0
|
Java 开发工具 Maven
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
1657 0
|
算法 安全 Linux
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:
738 0
Git 拉取项目小技巧之切换分支error: The following untracked working tree files would be overwritten by checkout:
|
开发工具 git
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
797 0