تخطى إلى المحتوى
أخطاء Gitخطأ
There is no tracking information for the current branch

There is no tracking information for the current branch

الفرع الحالي لم يُعدّ لتتبع فرع بعيد.

gitlinuxwindowsmacos

أسباب هذا الخطأ

الفرع المحلي أُنشئ دون تحديد فرع upstream للتتبع. لا يعرف Git أي فرع بعيد يسحب منه أو يرفع إليه.

كيفية الإصلاح

حدّد الفرع الأصلي (upstream): git branch --set-upstream-to=origin/branch-name. أو ادفع مع تحديده: git push -u origin branch-name. يلزم فعل ذلك مرة واحدة فقط لكل فرع.

مثال

git branch --set-upstream-to=origin/main main
التوثيق الرسمي

رموز أخطاء ذات صلة