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 update-ref refs/remotes/origin/master <commit-sha1 or tag>
これにより、指定したコミットへのリモート ブランチorigin/masterポイントが作成されます。
origin/master