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

目录
相关文章
|
2月前
|
JavaScript
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
|
4月前
|
存储 开发工具 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【解决办法】
|
10月前
|
开发工具 git
解决报错:Remove untracked files, stash or commit any changes, and try again
解决报错:Remove untracked files, stash or commit any changes, and try again
91 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的解决办法
602 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
260 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
1528 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:
709 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
769 0