Git没有添加文件
我正在尝试向临时区域添加一些文件。但git没有回应。我做错了什么 这是我查询当前状态时得到的结果Git没有添加文件,git,bitbucket,Git,Bitbucket,我正在尝试向临时区域添加一些文件。但git没有回应。我做错了什么 这是我查询当前状态时得到的结果 (web) roy@desktopL:~/Workspace/kpr-admin-db$ git status On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) Changes not staged for co
(web) roy@desktopL:~/Workspace/kpr-admin-db$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: .~lock.callLog.csv#
modified: db.sqlite3
modified: dbaccess/models.py
modified: dbaccess/models.pyc
modified: volunteers.csv
Untracked files:
(use "git add <file>..." to include in what will be committed)
dbController.py
no changes added to commit (use "git add" and/or "git commit -a")
感谢您的帮助。谢谢。请使用以下内容
git add .
或
参考本文件,请使用以下内容
git add .
或
请首先参考此文件,添加您必须使用的所有文件:
# add new, removed and updated files
# -A is alias for `git add . && git add -u`
git add -A .
注 使用,
git add-A是默认值
复制自上述发行说明:
git add
与现在的git add-A
相同,因此
git add dir/
会注意到您从目录中删除的路径,然后
记录移除过程。在较旧版本的Git中,使用了
GitAdd
忽略删除。您可以说git add--ignore remove
to
如果确实需要,请仅在中添加添加或修改的路径
在您的情况下,您的
.gitignore
文件中有该文件,因此您必须将其从文件中删除。首先要添加您必须使用的所有文件:
# add new, removed and updated files
# -A is alias for `git add . && git add -u`
git add -A .
注 使用,
git add-A是默认值
复制自上述发行说明:
git add
与现在的git add-A
相同,因此
git add dir/
会注意到您从目录中删除的路径,然后
记录移除过程。在较旧版本的Git中,使用了
GitAdd
忽略删除。您可以说git add--ignore remove
to
如果确实需要,请仅在中添加添加或修改的路径
在本例中,您的
.gitignore
文件中有该文件,因此必须将其从文件中删除。如果要添加最近创建、删除和更新的文件,请使用
git add-A
注意:
git add-A
不要添加.gitignore
中提到的文件。您必须将其删除。如果要添加最近创建、删除和更新的文件,请使用
git add-A
注意:git add-A
不要添加.gitignore
中提到的文件。你必须把它从那里移走