7

git 常用命令

 3 years ago
source link: https://segmentfault.com/a/1190000040628528
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

git 常用命令

发布于 今天 15:07

回退命令 git reset commit_id

关于git reset命令,包括 --mixed,--soft --hard等,其中--mixed为默认方式,他们之间的区别如下

git reset -soft:仅取消commit,本地仓库回退至指定版本
git reset -mixed(default):取消commit与add,本地仓库回退至指定版本
git reset -hard :取消commit与add,并撤回源文件的修改

阅读 41发布于 今天 15:07

万春园里误春期——前端之路
以前的学习中,总是去网上查看他人的博客或者文章,零零散散也在其他地方写过自己的博客。在此一个专栏...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK