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.
このコマンドを正しく使用する方法を理解しようとしています。これは、基本的に1つのブランチを別のブランチに作成したいコマンドとフラグだと思います(基本的にブランチを削除し、別のブランチのファイルと同じ名前の新しいブランチを作成します)が、確かにはわかりませんが、または、構文が正しい場合。
私がこれを行う場合:
git branch -f master sub-branch
マスターからすべてのファイルを削除し、サブブランチからのファイルで埋めますか?
-f引数はを表します--force。
-f
--force
master
sub-branch
HEAD