首页 > 其他 > 详细

git提交的具体操作

时间:2019-07-25 12:59:54      阅读:77      评论:0      收藏:0      [点我收藏+]

git stash 备份当前工作区的内容,保存到git 栈中

git pull 拉取新的代码

git stash pop  从git栈中获取到最近一次stash进去的内容,恢复工作区的内容。。获取之后,会删除栈中对应的stash。 由于可能会stash多次,git使用栈管理,我们可以使用git stash list查看所有的stash

git stash list  可以显示git栈中的所有工作区内容的备份,比如使用git stash apply stash@{1},就可以把版本号为stash@{1}的备份取出,不会删除对应的stash。。0为最新版本

 

 

git add 

git commit -m "xxxxx"

 

 

git commit --amend

该命令可以用来撤销上一次提交到版本库的操作 并将暂存区重新提交到版本库中。简单的说就是可以帮我们 修改 最近一次提交到版本库的内容

 

Esc+w+q 保存退出

 

git提交的具体操作

原文:https://www.cnblogs.com/sherrycat/p/11243356.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!