当将某个项目的任何分支推送到bitbucket时,我突然发现了一个错误。
当我这样做时:git push
,我得到以下内容:
inotify_add_watch: No such file or directory
registerToSubTree : warning, failed to register /home/user/workspace/project/.git/refs/remotes/origin/dev.lock :Error watching /home/user/workspace/project/.git/refs/remotes/origin/dev.lock : No such file or directory
导致这种情况的原因是什么? 感谢
答案 0 :(得分:3)
从命令行提交时(使用Ubuntu 13.04和git 1.8.1.2),我刚刚遇到此错误。
$:~/dev/myLogger$ git push origin master
**Everything up-to-date**
inotify_add_watch: No such file or directory
registerToSubTree : warning,
failed to register /home/me/dev/myLogger/.git/refs/remotes/origin/master.lock :
Error watching /home/me/dev/myLogger/.git/refs/remotes/origin/master.lock : No such file or directory
我打开了Eclipse(用于HTML开发的Aptana插件)。
关闭Eclipse并重新运行命令,错误就消失了。