gitlab repository
に変更をプッシュするように私のプロジェクトにgit
を設定しました。gitコミットされた内容と変更されていない内容
私はgitlab
に私のプロジェクトをプッシュすると、すべてがこの除きプッシュ.git
ディレクトリおよびプラグインのディレクトリ
にgit
に関連付けられている他のファイルもあり/vendor/dereuromar/cakephp-queue
にあるgithub
からプラグインをインストールディレクトリ。 git status
をしようとすると
それは私が.git
ディレクトリ、vendor/dereuromark/cakephp-queue
から.gitignore
と.gitattributes
ディレクトリを削除しようとした
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: vendor/dereuromark/cakephp-queue (modified content, untracked content)
no changes added to commit (use "git add" and/or "git commit -a")
としてエラーが発生します。
git status
の出力は
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
である。しかし、そのディレクトリの内容がgitlab
にアップロードされていません。
このディレクトリの内容をプッシュするにはどうすればよいですか?私はsubmodule
を作成していません。
サブモジュールがどのように機能するかについての基本的な誤解があります。サブモジュールと、ドキュメントについて説明している[Pro Git](https://git-scm.com/book/en/v2/Git-Tools-Submodules)のセクションを読むことをお勧めします。複雑な仕事。 – Pockets
私は言った、私はサブモジュールを作成していない。プラグインディレクトリは '.git'ディレクトリを含んでいるので、サブモジュールとして扱われています。 –
は、あなたがGITのコンセプトを忘れてしまったようです。 .gitフォルダーはリポジトリーの管理フォルダーであり、クローンごとであり、GITによって管理および配布されるリポジトリーの一部ではないため、.gitフォルダーをコミットすることはできません。 – yorammi