zoukankan      html  css  js  c++  java
  • 使用git将Android源码上传到github

    下面举Android的Browser源码通过git保存到github上

    首先在github.com官网new repository一个仓库

    在Repository name哪里填入Browser然后创建

    这时候会生成一个地址,这个就是你的仓库地址。

    例如我的:https://github.com/gitdecode/Browser.git

    然后在你源码的仓库下配置gitconfig,进入源码的目录下,vim .git/config

    然后在url那里填入你在github上创建的地址,这里也就是https://github.com/gitdecode/Browser.git

    保存退出。

    然后给你的github地址添加origin,执行这个命令添加git remote add origin https://github.com/gitdecode/Browser.git

    再执行git push origin master 将当前的分支提交到你的github仓库上。

    这时会让你输入github的账号和密码。把对应的账号密码写入即可,如果源码比较大,这里会卡一段时间才上传完成。

  • 相关阅读:
    JSP实现数据传递(web基础学习笔记三)
    Spring Boot 参数校验
    Spring AOP实践
    Spring AOP介绍
    2018年春节
    InnoDB索引
    Kafka基本知识回顾及复制
    Kakfa消息投递语义
    Kafka Consumer
    Kafka Producer Consumer
  • 原文地址:https://www.cnblogs.com/suicode/p/9763620.html
Copyright © 2011-2022 走看看