美文网首页
github克隆修改提交

github克隆修改提交

作者: 明月工作坊 | 来源:发表于2018-10-10 18:14 被阅读15次

1. 克隆

git clone https://github.com/mingruyue/ethernetPhone.git

2. 修改前

$ git remote -v

origin https://github.com/mingruyue/ethernetPhone.git (fetch)

origin https://github.com/mingruyue/ethernetPhone.git (push)

要把更新提交,下面这句不能少

$ git remote add upstream https://github.com/mingruyue/ethernetPhone.git

再查看

$ git remote -v

origin https://github.com/mingruyue/ethernetPhone.git (fetch)

origin https://github.com/mingruyue/ethernetPhone.git (push)

upstream https://github.com/mingruyue/ethernetPhone.git (fetch)

upstream https://github.com/mingruyue/ethernetPhone.git (push)

3. 修改

......

git add nphone/

git commit -m "add support for openwrt"

4. 提交到github

git push origin master

相关文章

  • github克隆修改提交

    1. 克隆 git clone https://github.com/mingruyue/ethernetPhon...

  • git克隆和修改及其提交

    github clone 会将整个目录克隆到本地 修改及其提交进入目录中修改东西然后用git add 文件将修改过...

  • 如何修改github仓库代码

    如何在终端中使用指令检出项目,修改并提交。 首先使用git clone url将github上的项目克隆到本地 增...

  • Git 基本操作

    新建项目 克隆项目到本地 提交修改 切换分支 查看commit log

  • Git 工作流程

    流程如下 克隆Git资源作为工作目录 在克隆的资源上添加或修改文件 如果其他人改了你可以更新资源 在提交前查看修改...

  • 一步步带小小白用vs code使用git

    Git:克隆——>修改提交——>推送——>主干合并分支 Git 的使用: 1、 首先在git上克隆下你的项目。 2...

  • git常用命令

    从远程仓库克隆,并在本地修改后,提交到远程仓库 git clone 远程仓库地址 将远程仓库克隆到本...

  • git从入门到精通

    查看git命令 初始化git仓库 克隆远程仓库(github) 添加新增的文件 提交到本地库 提交到远程maste...

  • gitlab提交(push)流程

    克隆过项目后,对项目修改完毕提交流程 1.添加需要上传的文件(夹) 2.上传 3.提交

  • git

    添加远程仓库 从远程仓库克隆 将本地仓库内容提交github 从远程更新

网友评论

      本文标题:github克隆修改提交

      本文链接:https://www.haomeiwen.com/subject/mwrmaftx.html