Files
freeCodeCamp/guide/arabic/miscellaneous/rename-local-branches-in-git/index.md
2018-10-16 21:32:40 +05:30

667 B

title, localeTitle
title localeTitle
Rename Local Branches in Git إعادة تسمية الفروع المحلية في جيت

لإعادة تسمية فرع محلي ، أدخل ما يلي في المحطة:

-m يقف للحركة ، مثلما تستخدم mv في linux لإعادة تسمية الملفات.

git branch -m <oldname> <newname>

إذا قمت بالفعل بفحص الفرع الذي تريد تغييره:

git branch -m <newname>

في ما يلي مثال على إعادة تسمية فرع feature/react-challenges fix/react-hikes من FreeCodeCamp:

git checkout feature/react-challenges git branch -m fix/react-hikes