Я пытаюсь протолкнуть свои файлы в git, но это не сработает.Git push -u origin master
Это то, что я делал раньше.
git init
git add .
git commit -m "Start"
git remote add origin [email protected]:user/repo.git
Первый git push -u origin master
работ.
После смены некоторых файлов и попытки вернуть git push -u origin master
не работает.
To [email protected]:denis89/gaw8d3.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]:denis89/gaw8d3.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Также git pull не работает из-за несварных файлов. Любые идеи?
Я выяснил, как его решить благодаря Треву Норрису: http://stackoverflow.com/questions/15127078/git-pull-is-not-possible-unmerged-files –