🔥جمعه سیاه در راکت با (( ۷۰ درصد )) تخفیف! این فرصت دیگه تکرار نمیشه
مشاهده دورههاسلام من کامند های زیر رو زدم تا پروژمو بفرستم به گیتهاب.
git push origin master
git push --set-upstream origin master
این دوتا رو که زدم تو هر دوش ارور زیر رو میده:
To https://github.com/NimaAram1/HandleProjects-django.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/NimaAram1/HandleProjects-django.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.
نمیدونم دقیقا چشه هم فایلارو اد کردم کامیت هم کردم.راه حلش چیه؟
@arian
سلام وقت شما بخیر دوست عزیز @aramnima50 برای رفع مشکلت این دو تا مرحله رو انجام بدی درست میشه :
مرحله اول :
در قسمت command یا همون git bash این دستور رو بنویس :
git config --global --edit
مرحله دوم :
بعد از اینکه دستور بالا رو نوشتی یک مرورگر پیش فرض برای شما باز میشه که باید این دستورات رو اخر کدات بنویسی تا مشکلت برطرف بشه
[credential]
helper = osxkeychain
useHttpPath = true
اگر باز هم متوجه نشدی به این لینک مراجعه کن :
https://stackoverflow.com/questions/40069344/remote-rejected-master-master-permission-denied
دلیلش اسنه که فایلی در remote repository داری که تو local repo نداری با این دستور مشکل حل میشه
git push -u origin --force
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟