手机
当前位置:查字典教程网 >编程开发 >相关技巧 >github 常用命令总结大全
github 常用命令总结大全
摘要:github常用命令最近开始研究github,mark下一些常用命令gitremoteaddupstreamhttps://github.c...

github常用命令

最近开始研究github,mark下一些常用命令

git remote add upstream https://github.com/winterIce/testTitle.git(别人的repository) // 新建分支用于存放别人的repository

git clone https://github.com/winterIce/testTitle.git 克隆到本地

git fetch branch2//更新信息

git merge branch2/master //merge本地信息

git add . //添加新文件或者更改新文件

git remove ** //删除文件

git commit -m 'by who do what' //提交文件到本地

git push push到服务器上

git pull origin master 从服务器上拉取信息

git remote 查看repository上的所有分支

git branch -a 查看所有分支

git branch -r 查看远程分支

git branch -d *** //删除分支

git branch *** //新建分支

git checkout ***//切换分支

git status //查看状态

git log //查看提交修改记录

以上就是对Git命令的整理,后续继续补充,谢谢大家对本站的支持!

【github 常用命令总结大全】相关文章:

2013年CIO需要知道的八句格言

Git的使用规范流程总结

HTTP 2.0 详细介绍

浅谈解决360兼容模式浏览器的方法

程序员编程从初级到中级的10个秘诀

访客站点停留时间和页面停留时间的实现方案

网站性能优化之HTTP请求过程简述

使用HTTP_X_FORWARDED_FOR获取客户端IP的严重后果

firefox 扩展开发技巧

Git 教程之工作流程详解

精品推荐
分类导航