И это всё МОЁ

Сделал я проект, скажем some-data. Есть отдельная репа common. Мои действия:


1. Создаю репу some-data
2. cd some-data
3. git init
4. change .git/config
5. git clone [email protected]:some_name/common.git
6 .git submodule add [email protected]:some_name/common.git;git submodule init
7. git add .;git commit;git push origin master
8. cd ..; rm -rf some-data


Далее я хочу проверить, всё ли ок


1. git clone --recurse-submodules -j8 [email protected]:some_name/some_data.git
2. cd some-data


ls -a common
. .. bash .git .gitignore python

cat common/.git
gitdir: ../.git/modules/common


cd common
touch 1; echo "wefwewwe" > 1
git add .;git commit;git push origin master


error: unable to push to unqualified destination: HEAD
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to '[email protected]:some_name/common.git'




  1. cd ..

  2. git add .;git commit;git push origin master


коммит проходит, но в репозитории common нет изменений, а в коммите some-data примерно такое:


-Subproject commit f971964634505ed3fd844675da0bd908c7d3a5a1

+Subproject commit 39ca9270f87da8276a8bd7e66f744f9c30e7352a