分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 代码编程

在github中新建仓库后,如何上传文件到这个仓库里面。

发布时间:2023-09-06 02:18责任编辑:郭大石关键词:github

在github中新建仓库后,如何上传文件到这个仓库里面。

libin@hglibin MINGW64 /e/github.io (master)$ git remotelibin@hglibin MINGW64 /e/github.io (master)$ git remote add origin git@github.com:hglibin/hglibin.github.io.gitlibin@hglibin MINGW64 /e/github.io (master)$ git fetch originremote: Enumerating objects: 3, done.remote: Counting objects: 100% (3/3), done.remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0Unpacking objects: 100% (3/3), done.From github.com:hglibin/hglibin.github.io * [new branch] ?????master ????-> origin/masterlibin@hglibin MINGW64 /e/github.io (master)$ git pull origin masterFrom github.com:hglibin/hglibin.github.io * branch ???????????master ????-> FETCH_HEADlibin@hglibin MINGW64 /e/github.io (master)$ git add index.htmllibin@hglibin MINGW64 /e/github.io (master)$ git commit -m "添加index.html文件"[master 446f9c5] 添加index.html文件 1 file changed, 30 insertions(+) create mode 100644 index.htmllibin@hglibin MINGW64 /e/github.io (master)$ ?git push -u origin masterEnumerating objects: 4, done.Counting objects: 100% (4/4), done.Delta compression using up to 4 threads.Compressing objects: 100% (3/3), done.Writing objects: 100% (3/3), 705 bytes | 352.00 KiB/s, done.Total 3 (delta 0), reused 0 (delta 0)To github.com:hglibin/hglibin.github.io.git ??cdbaba8..446f9c5 ?master -> masterBranch 'master' set up to track remote branch 'master' from 'origin'.

在github中新建仓库后,如何上传文件到这个仓库里面。

原文地址:https://www.cnblogs.com/hglibin/p/9783135.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved