اذهب إلى المحتوى
  • 0

خطأ عند رفع الملفات على git

حسن الشافعي2

السؤال

السلام عليكم كنت ارفع مشروع يوميا بعد اجراء التعديل عليه على git لكن اليوم الملفات لا ترفع و يظهر الخطئ التالي

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

ما السبب

رابط هذا التعليق
شارك على الشبكات الإجتماعية

Recommended Posts

  • 1

رسالة الخطأ تخبرك أن المستودع البعيد الخاص بالمشروع يحتوي على تعديلات ليست موجودة لديك محليًا لذلك ستحتاج لجلب هذه التعديلات من المستودع باستخدام الأمر 

git pull

و بعدها يمكنك رفع التعديلات الجديدة التي قمت بها.

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ منذ ساعة مضت قال Yomna Raouf:

و بعدها يمكنك رفع التعديلات الجديدة التي قمت بها.

لم تحل عند تنفيذ git pull يظهر الخطئ

There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ 14 دقائق مضت قال HA_shafeai:

لم تحل عند تنفيذ git pull يظهر الخطئ

There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

إذا كان المشروع الخاص بك يحتوي على أكثر من branch ستحتاج لتحديد اسم ال branch الذي تجلب البيانات منه مثلًا

git pull origin develop( branch اسم ال )

// git pull origin ( branch اسم ال )

إذا لم تنجح يمكنك استخدام الأمر التالي:

git branch --set-upstream-to=origin/develop( branchاسم ال )


// git branch --set-upstream-to=origin/( branchاسم ال )

وبعدها التجربة مرة أخرى

رابط هذا التعليق
شارك على الشبكات الإجتماعية

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...