كيفية إنشاء فرع فارغ من مستودع موجود مسبقاً

العنوان بالانكليزية: How to create an empty branch from an existing repository؟

إذا كان لديك مستودع Git للتو وتريد إضافة فرع جديد أو Branch فارغ له، فيمكنك اتباع الأوامر التالية:

git switch --orphan <new branch>
git commit --allow-empty -m "Initial commit on orphan branch"
git push -u origin <new branch>

المصدر: https://stackoverflow.com/questions/34100048/create-empty-branch-on-github