私はリモートでクローンしたローカルディレクトリを持っています。しかし、追加、コミット、リモートサーバーへのプッシュを試みると、次のようになります。シンボリックリンクしたフォルダを追加、コミット、プッシュしようとするとエラーが表示されます
ご了承ください。その後
$ git add .
warning: LF will be replaced by CRLF in .meteor/.finished-upgraders.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .meteor/.gitignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .meteor/.id.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .meteor/packages.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .meteor/platforms.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .meteor/release.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .meteor/versions.
The file will have its original line endings in your working directory.
error: readlink("node_modules"): Function not implemented
error: unable to index file node_modules
fatal: adding files failed
:次に
$ git commit -a -m "commit"
On branch master
Initial commit
Untracked files:
.gitignore
.meteor/
node_modules
server/
tsconfig.json
tslint.json
typings
nothing added to commit but untracked files present
:
$ git push
error: src refspec master does not match any.
error: failed to push some refs to 'https://git.heroku.com/remote-thewhozoo.git'
た場合もI:
$ git remote show origin
* remote origin
Fetch URL: https://git.heroku.com/remote-thewhozoo.git
Push URL: https://git.heroku.com/remote-thewhozoo.git
HEAD branch: (unknown)
Local branch configured for 'git pull':
master merges with remote master
あなたが見ることができるように、私はシンボリックリンクを持っています。
'.gitignore'ファイルには何がありますか? – Shravan40
'.gitignore'は' node_modules/'を持っています – Richard
最近' .gitignore'ファイルに 'node_modules /'を追加しましたか? – Shravan40