好的,所以我有以下分支:
git branch
2012-08-06-AAH
2012-08-06-JWH
2012-08-06-Master
* master
我想结帐到2012-08-06-AAH
。所以我这样做:
git checkout 2012-08-06-JWH
error: Your local changes to the following files would be overwritten by checkout:
MyProject/canada/rocky_mountaineer/best/coast_to_coast_rail/index.html
MyProject/europe/train_tours/scenic_europe/index.html
MyProject/europe/train_tours/springtime_alps/index.html
MyProject/europe/train_tours/week_in_spain/index.html
MyProject/europe/train_tours/windmills_vineyards_paris/index.html
MyProject/europe/train_tours/wonderful_france/index.html
MyProject/europe/train_tours/wonders_st_petersburg_moscow/index.html
Please, commit your changes or stash them before you can switch branches.
Aborting
好,可以。所以我这样做:
git status
# On branch master
nothing to commit (working directory clean)
嗯...那么,如果没有要提交的内容,我该如何“提交您的更改或存储它们”?
感谢您的帮助 - 我是一个 Git 新手(主要使用 Tower,GUI 客户端),当我失败时,我求助于命令行。