@ ব্র্যান্ডনের পরামর্শ অনুসারে, আশেপাশে যাওয়ার জন্য আমার যা করা দরকার তা এখানে
error: Your local changes to the following files would be overwritten by merge:
file.txt
Please, commit your changes or stash them before you can merge.
Aborting
এই প্রক্রিয়া অনুসরণ করুন:
git status # local changes to `file`
git stash list # further changes to `file` we want to merge
git commit -m "WIP" file
git stash pop
git commit -m "WIP2" file
git rebase -i HEAD^^ # I always use interactive rebase -- I'm sure you could do this in a single command with the simplicity of this process -- basically squash HEAD into HEAD^
# mark the second commit to squash into the first using your EDITOR
git reset HEAD^
এবং আপনাকে সম্পূর্ণরূপে একীভূত স্থানীয় পরিবর্তনগুলিতে ছেড়ে fileদেওয়া হবে, আরও কাজ / ক্লিনআপ করতে প্রস্তুত বা একটি ভাল প্রতিশ্রুতিবদ্ধ করতে। অথবা, যদি আপনি জানেন যে মার্জ করা সামগ্রীগুলি fileসঠিক হবে তবে আপনি কোনও উপযুক্ত বার্তা লিখে এড়িয়ে যেতে পারেন git reset HEAD^।