美文网首页
GitHub 上传和提交更新

GitHub 上传和提交更新

作者: 淡然z | 来源:发表于2018-06-19 18:14 被阅读0次

1. cd到需要上传目录

2. 初始化:git init

3. 添加到本地仓库:git add .

4. 写更新纪录:git commit -m "更新记录"

5. 链接远程仓库:git remote add origin远程仓库地址 

6. git pull origin master 

     出现fatal: refusing to merge unrelated histories

     使用 git pull origin master --allow-unrelated-histories 

7. shift+q后输入q

8. git push origin master

更新执行步骤1.3.4.8即可

相关文章

  • GitHub 上传和提交更新

    1. cd到需要上传目录 2. 初始化:git init 3. 添加到本地仓库:git add . 4. 写更新纪...

  • GitHub 上传和提交更新

    1. cd到需要上传目录 2. 初始化:git init 3. 添加到本地仓库:git add . 4. 写更新纪...

  • github

    如何使用Git上传项目代码到github 提交本地代码到github github 的命令 如何提交changes...

  • Leetcode 88. Merge Sorted Array

    Python 3 实现: 源代码已上传 Github,持续更新。 源代码已上传至 Github,持续更新中。

  • Leetcode 21. Merge Two Sorted Li

    Python 3 实现: 源代码已上传 Github,持续更新。 源代码已上传至 Github,持续更新中。

  • Leetcode 9. Palindrome Number

    Python 3 实现: 源代码已上传 Github,持续更新。 源代码已上传至 Github,持续更新中。

  • Leetcode 4. Median of Two Sorted

    Python 3 实现: 源代码已上传 Github,持续更新。 源代码已上传至 Github,持续更新中。

  • Leetcode 64: Minimum Path Sum

    动态规划 Python 3 实现: 源代码已上传 Github,持续更新。 源代码已上传至 Github,持续更新中。

  • Leetcode 7. Reverse Integer

    整型反转,Python 3 实现: 源代码已上传 Github,持续更新。 源代码已上传至 Github,持续更新中。

  • Leetcode 132. Palindrome Partiti

    动态规划,Python 3 实现: 源代码已上传 Github,持续更新。 源代码已上传至 Github,持续更新中。

网友评论

      本文标题:GitHub 上传和提交更新

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