نسخ مجلد من فرع معين إلى الفرع الحالي

العنوان بالانكليزية: Copy a folder from a specific branch to the current branch in GIT

إذا كان لديك مستودع Git للتو وفيه أفرع (Branches) وتريد نسخ مجلد من فرع معين (مثلاً Main Branch) إلى الفرع الحالي (Current Branch)، تتبع الأمر التالي:

git checkout <other-branch-name> -- path/to/your/folder

المصدر: https://www.delftstack.com/howto/git/copy-file-from-another-branch-in-git/