আপনার ক্ষেত্রে, দ্রুত-ফরওয়ার্ড করার জন্য, চালান:
$ git merge --ff-only origin/master
এটি --ff-onlyবিকল্পটি ব্যবহার করে git merge, যেমন প্রশ্নটি "ফাস্ট-ফরোয়ার্ড" এর জন্য বিশেষভাবে জিজ্ঞাসা করে।
এটির থেকে একটি অংশ এখানে git-merge(1)আরও দ্রুত-ফরওয়ার্ড বিকল্পগুলি দেখায়:
--ff, --no-ff, --ff-only
Specifies how a merge is handled when the merged-in history is already a descendant of the current history. --ff is the default unless merging an annotated
(and possibly signed) tag that is not stored in its natural place in the refs/tags/ hierarchy, in which case --no-ff is assumed.
With --ff, when possible resolve the merge as a fast-forward (only update the branch pointer to match the merged branch; do not create a merge commit). When
not possible (when the merged-in history is not a descendant of the current history), create a merge commit.
With --no-ff, create a merge commit in all cases, even when the merge could instead be resolved as a fast-forward.
With --ff-only, resolve the merge as a fast-forward when possible. When not possible, refuse to merge and exit with a non-zero status.
আমি প্রায়শই পর্যাপ্ত-ফরোয়ার্ড করে থাকি যে এটি একটি উপন্যাসের ওয়্যারেন্ট করেছে:
$ git config --global alias.ff 'merge --ff-only @{upstream}'
এখন আমি এটি দ্রুত-ফরওয়ার্ডে চালাতে পারি:
$ git ff
git checkout HEADকখনই কিছু করে নাHEADইতিমধ্যে পরীক্ষিত প্রতিশ্রুতি মানে।