Specifically, I'm using bzr, but tips for any VCS are welcome.
2 に答える
5
3つの選択肢があると思います。
棚を使用する
bzr shelve --all
bzr unshelve
最新のブランチを作成します
- 変更のパッチを作成し、変更を元に戻します。変更を元に戻す必要がある場合は、パッチを適用します。
于 2009-12-30T21:59:44.033 に答える
2
Gitの使用:
git checkout HEAD^ # get the previous version, changing files on disk to match
make # run your project (or whatever command you use)
git checkout master # return to the "master" branch
上記は、現在取り組んでいる変更をすでにコミットしていて、前のコミットに戻りたい場合に適用されます。まだコミットされていない変更がある場合は、隠し場所を使用してください。
git stash # save the uncommitted changes away
make # ...
git stash pop # restore your uncommitted changes
スタッシュとポップの間に他の変更を加えてコミットすることができます。これは、「即時のバグ修正リクエストによるボスの割り込み」問題に対するGitのソリューションです。
于 2009-12-30T22:00:22.113 に答える