5

別の質問で、ユーザーは次のreflogを投稿しました。

8c48bab HEAD@{16}: checkout: moving from develop to 8c48babb10ec2f8f28f364ce57b5095cb080c133^0
54d8daf HEAD@{17}: commit: changed the how function, it seems I was right, wc counts all lines regardless of readable symbols or not.
13d35ed HEAD@{18}: commit: am working on the how function (should be trivial, but I have a bad feeling)
852fb68 HEAD@{19}: commit: I have added some more commands (thought not fully implemented), but more specifically I have changed the pattern matching
33dfc9f HEAD@{20}: commit (merge): change some output settings, asthetics and such. I am working on getting more command options for list previous lin
a248465 HEAD@{21}: commit (amend): added another sanity check for cli parameters
f0ca508 HEAD@{22}: commit (amend): added another sanity check for cli parameters
9e24e91 HEAD@{23}: commit: added another sanity check for cli parameters
0194cab HEAD@{24}: commit: I am working on getting the console improved, this including better color, and more cammand options
8c48bab HEAD@{25}: checkout: moving from master to testing

HEAD@{25}、ユーザーはテストブランチに切り替えます。ただし、HEAD@{16}では、ユーザーは、テストから開発への事前の移動なしに、開発からコミットに移動します。

reflogに反映されずにブランチを変更するにはどうすればよいですか?このユーザーは特に洗練されているとは思わないので、難解なトリックが使用されたとは思えません。

4

1 に答える 1

3

ユーザーは(sha1を使用して)特定のコミットをチェックアウトしてから、ブランチを作成したようです。

アップデート

申し訳ありませんが、質問を読み間違えました。ユーザーがブランチの名前をに変更した可能性がありtestingますdevelop

于 2012-06-22T14:55:12.173 に答える