londonappbrewery / Flutter-Course-Resources

Learn to Code While Building Apps - The Complete Flutter Development Bootcamp
https://www.appbrewery.co
10.29k stars 3.07k forks source link

Not able to create add my projects in repository? #16

Open preeti13456 opened 4 years ago

preeti13456 commented 4 years ago

! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://github.com/preeti13456/Flutter.git' 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.

anii76 commented 4 years ago

! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://github.com/preeti13456/Flutter.git' 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.

try the commands : git pull --rebase origin master git push origin master

mmajdanski commented 4 years ago

I would try and fork the repository first from LondonAppBrewery and then clone it from your own repository. That should update all remote references.

nnhhiilliisstt commented 4 years ago

I suggest clone repository and then use github desktop for publishing your repository

prateek-aher commented 3 years ago

anii76's solution should work fine.