Github使用命令

Github使用命令

—检出

git clone 链接地址

–设置全局email

git config —global user.email "fuguto@126.com"`

–设置全局用户名

git config —global user.name "xumi"`

–添加提交日志

git commit -m "提交信息"

–提交

git push -u origin master

–本地更新代码

–检查本地更新的情况

git status

–更新文件到分支上

git branch

–选择合并分支

git checkout -[分支名称]

–远端更新

1.切换到现有分支

git checkout remote branch

2.将远程文件拉倒本地

git pull

—本地添加远程仓库

git remote add origin git@github.com:michaelliao/learngit.git

   转载规则


《Github使用命令》 海东青 采用 知识共享署名 4.0 国际许可协议 进行许可。
 上一篇
hexo-theme-matery hexo-theme-matery
本blog基于hexo和hexo-theme-matery主题。特别感谢blinkfox大神开发的主题hexo-theme-matery,并无私奉献,主题地址 https://github.com/blinkfox/hexo-theme-m
2019-07-14
下一篇 
Mac下Beyond Compare不用破解码无限试用 Mac下Beyond Compare不用破解码无限试用
##Mac下Beyond Compare不用破解码无限试用下载: 国外官网下载BeyondComparehttp://www.scootersoftware.com/download.php 无限试用的原理 BCompare是应用程序启动
2019-07-13
  目录