Я нашел несколько подобных вопросов. Но я не могу найти решение.git: Не удается добавить файлы в github
добавить папку с файлами и подпапок в мой локальный репозиторий с помощью:
git add .
И затем:
git commit -m "comment"
я получаю:
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Проблема что я не могу найти файлы на github. Есть идеи?
EDIT:
git push -u [email protected]:kamekame/wolke master
дает:
To [email protected]:kamekame/wolke
! [rejected] master -> master (fetch first)
error: failed to push some refs to '[email protected]:kamekame/wolke'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
РЕШЕНИЕ:
git remote -v
дает мне:
origin [email protected]:kamekame/alpha.git (fetch)
origin [email protected]:kamekame/alpha.git (push)
, который отличался от моего push-адреса kamekame/wolke!
Ну, вам нужно нажать. commit добавит только фиксацию в локальный репозиторий. https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes –
Запустить 'git pull' для синхронизации сначала –
git pull -> Все уже обновлены! Это также не помогает. :/ – kame