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

目录
相关文章
|
21天前
|
存储 开发工具 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
|
5月前
|
开发工具 git
解决报错:Remove untracked files, stash or commit any changes, and try again
解决报错:Remove untracked files, stash or commit any changes, and try again
42 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的解决办法
475 0
|
开发工具 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
240 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
1310 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
|
算法 安全 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:
613 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
687 0

热门文章

最新文章