I connected 2 repositories.
git remote add origin https://github.com/мой_аккаунт/репозиторий_1.git -> здесь много файлов git remote add index https://github.com/мой_аккаунт/репозиторий_2.git -> тут пусто After that, I made the changes and decided to commit them to the first repository:
git add index.php git commit -m "Comit" git push origin master All OK. Then I want to commit the same changes to the second repository:
git push index master and all files were uploaded to the empty repository, not just index.php. Why?