首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

git 惯用操作

2012-07-22 
git 常用操作转载自:http://zires.info/category/git/1)如何取消上一次的提交# 临时保存当前分支的修改git

git 常用操作

转载自:http://zires.info/category/git/

1)如何取消上一次的提交

# 临时保存当前分支的修改
git stash
# 更复杂点
git stash save [--keep-index] [<message>]
# 列出所有的stash
git stash list
# 恢复
git stash apply
# or
git stash pop


注意:这个命令不会保存当前分支中Untracked的文件,所以记得在切到其他分支的时候,谨慎使用git clean

热点排行