Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ファイルに一連のコミットを行ったところ、間違った行末で作成されたことがわかりました。dos2unixコミットをリベースし、各ステップでコマンドを適用したいと考えています。各ステップの後に git がファイルとの完全な競合を登録するため、これを行う簡単な方法がわかりません。何か案は?
dos2unix
を使用しfilter-branchます。
filter-branch
git filter-branch --tree-filter 'dos2unix filename' master
(変更したいコミットが on であると仮定しますmaster。ブランチ全体にフィルターを適用する代わりに、コミット名のより具体的なリストを使用することもできます。)
master