美文网首页开发者
GitHub代码上传备忘

GitHub代码上传备忘

作者: Young_Allen | 来源:发表于2017-06-08 15:34 被阅读25次

1.github工具下载安装
https://git-for-windows.github.io/

2.github代码仓创建


3.获得代码仓地址


4.本地github工具操作
创建本地git项目目录,通过git clone http****(代码仓地址)

5.代码仓文件上传
在项目目录中放置代码


git add . (注:别忘记后面的.,此操作是把代码仓文件夹下面的文件都添加进来)
git commit -m "提交信息" (注:“提交信息”里面换成你需要,如“first commit”)
git remote add origin **
git push -u origin master (注:此操作目的是把本地仓库push到github上面,此步骤需要你输入帐号和密码)

或者按以下步骤:
git add . (注:别忘记后面的.,此操作是把代码仓文件夹下面的文件都添加进来)
git commit -m "提交信息" (注:“提交信息”里面换成你需要,如“first commit”)
git push


相关文章

  • GitHub代码上传备忘

    1.github工具下载安装https://git-for-windows.github.io/ 2.github...

  • 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,持续更新中。

  • 上传github 代码

    一、注册github账号 首先需要注册一个github账号,注册地址:https://github.com 接着会...

  • 代码上传github

    1.先在github上新建一个远程仓库,仓库名字一般写框架名字 2.将远程仓库上的代码(里面只有一些初始化的东西)...

  • 代码上传github

    1.首先注册github账号,登录,创建新仓库,点击+,点击new repository 2.填写仓库名,自己随便...

  • Github代码上传

    # Github代码上传 # ## 打开Github,注册账号,创建新的项目 ## https://github....

  • Leetcode 64: Minimum Path Sum

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

网友评论

    本文标题:GitHub代码上传备忘

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