git常用命令

Git2018年11月20日 pm8:21发布1个月前更新 3xcn.com@站长
1 0 0
广告也精彩
目录

git常用

git init
git add
git status
git commit
git commit -m "xxx"

git log

git log
git log -p 同时列出本次提交前后具体的差别
git log --pretty=oneline 每条记录仅占一行显示

查看分支

git branch

创建分支xxx

git branch -b xxx

删除分支 xxx

git branch -d xxx

切换分支

git checkout master

git clone

合并分支(先切回主分支)

git checkout master
git merge development
git pull
git push

回退

git reset --hard commit_id

删除overlay文件

git add .
git reset HEAD --hard

 历史上的今天

版权声明 1、 本站名称: 91易搜
2、 本站网址: 91es.com3xcn.com
3、 本站文章: 部分来源于网络,仅供站长学习和参考,若侵权请留言
广告也精彩

相关文章

广告也精彩

暂无评论

评论审核已启用。您的评论可能需要一段时间后才能被显示。

暂无评论...

网站升级中

公告

近期网站升级中,可能存在一些bug。欢迎反馈 https://www.91es.com/we.html

本站域名

本站域名 : 91es.com3xcn.com。本站邮箱 : 站长邮箱 i@oorr.cn,通知邮箱we@oorr.cn ,如有更新,请看公告 。