GitHub基本使用

在GitHub上新建一个仓库,得到两种地址

HTTPS:https://github.com/LuJianM/huashan.git

SSH:git@github.com:LuJianM/huashan.git

使用git remote -v查看本地仓库的远程仓库

basic@LJM MINGW64 /e/git/huashan (master)
$ git remote -v //查看本地仓库对应的远程仓库

发现没有显示,

设置远程仓库别名

git remote add 别名 远程仓库地址

basic@LJM MINGW64 /e/git/huashan (master)
$ git remote add origin https://github.com/LuJianM/huashan.git  //添加远程仓库,basic@LJM MINGW64 /e/git/huashan (master)
$ git remote -v
origin  https://github.com/LuJianM/huashan.git (fetch)  //取得(下载)
origin  https://github.com/LuJianM/huashan.git (push)   //提交

向远程仓库提交

git push 远程主机名 本地分支名 [远程分支名]

每次提交都会让你输入GitHub的账户名称(非邮箱)和密码。

basic@LJM MINGW64 /e/git/huashan (master)
$ git push origin master
fatal: HttpRequestException encountered.▒▒▒▒▒▒▒▒ʱ▒▒▒▒
Username for 'https://github.com': LuJianM
Counting objects: 3, done.
Writing objects: 100% (3/3), 260 bytes | 260.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/LuJianM/huashan.git* [new branch]      master -> master

GitHub基本使用相关推荐

  1. Github配置(git+vscode+python+jupyter)

    ①下载git 打开 git bash 工具的用户名和密码存储 $ git config --global user.name "Your Name" $ git config -- ...

  2. GitHub 中 Merge pull request 的 3 中选项说明

    Merge pull request 提供了 3 种 merge 方法: Create a merge commit:GitHub 的底层操作是 git merge --no-ff.feature 分 ...

  3. cannot find package “github.com/json-iterator/go“cannot find package “github.com/modern-go/reflect2“

    1. 问题现象 ../github.com/coreos/etcd/client/json.go:18:2: cannot find package "github.com/json-ite ...

  4. 知名高校共享课程资源GitHub地址

    文章目录 浙江大学 上海交大 北京大学 中科大 清华大学 浙江大学 https://github.com/QSCTech/zju-icicles 上海交大 https://github.com/Coo ...

  5. github下载源码也用命令进行安装包的联系

    2.下载安装 git clone https://github.com/Parsely/pykafka.git 然后将下载下来的pykafka文件夹下的pykafka文件(pykafka的库文件)放到 ...

  6. 快速访问github镜像 wiki镜像重点_github问题小结

    20220331 https://mp.weixin.qq.com/s/7ZFcD9BMB5WQnDAqZUgELg 高效的搜索github 20210821 https://zgc261.com/w ...

  7. github下载慢,轻松提速教程

    20210818 idm 可以快速下载github 获取github的IP地址 访问:https://www.ipaddress.com/ 网址 依次获取以下三个网址的IP github.com gi ...

  8. GitHub无法显示图片问题解决

    在C:\Windows\System32\drivers\etc下的hosts文件后面添: # GitHub Start 192.30.253.112 github.com 192.30.253.11 ...

  9. GitHub上YOLOv5开源代码的训练数据定义

    GitHub上YOLOv5开源代码的训练数据定义 代码地址:https://github.com/ultralytics/YOLOv5 训练数据定义地址:https://github.com/ultr ...

  10. GitHub上开源的YOLOv5

    GitHub上开源的YOLOv5 代码地址:https://github.com/ultralytics/YOLOv5 该存储库代表Ultralytics对未来的对象检测方法的开源研究,并结合了我们在 ...

最新文章

  1. linux kernel内存回收机制
  2. python 翻译库_有没有大神用Python Requests库翻译一下呢?
  3. 銷售訂單 (Sales Order): 資料表及更新記錄
  4. Java的语法格式是什么?有哪些需要注意?
  5. AD20学习笔记5---PCB设计规则设置及PCB手工布线
  6. http请求中get和post方法的区别
  7. 刚走上管理岗位的人要怎么做?
  8. (四) Docker 常用帮助命令
  9. Apache与Nginx服务器对比
  10. 免费下载百度文库的几款在线工具推荐
  11. Java实现自定义工作流
  12. python怎么sqrt开方
  13. 签offer VS 签三方
  14. 再谈微服务负载均衡器:Ribbon均衡器和SpringCloud自带LoadBalancer均衡器
  15. Linux就这个范儿 第13章 打通任督二脉
  16. ocp|ocm考证系列文章!
  17. Unity优化☀️渲染篇:CPU/GPU
  18. PPT模板哪里来——02
  19. The Sandbox 与 Knights of Degen 达成合作,在元宇宙建立王国
  20. react中实现取色器的效果React Color

热门文章

  1. python接口测试覆盖率统计_从 jacoco 报告数据分析,python 脚本实现增量覆盖率统计...
  2. equals变量在前面和后面的区别,equals已知(存在实际值)的变量在前的好处
  3. HTML的<span>标签【杂记】
  4. java列出文件正则过滤_JAVA正则表达式过滤文件的实现方法
  5. sklearn 聚类 实例
  6. sentinel 时间窗口_Sentinel潜龙勿用篇
  7. 任务型对话系统预训练最新研究进展
  8. 强烈推荐十大NLP主流经典项目:预训练BERT、知识图谱、智能问答、机器翻译、文本自动生成等...
  9. PyTorch + NumPy这么做会降低模型准确率,这是bug还是预期功能?
  10. 将SimCLR应用于NLP预训练模型,提升句子语义表征效果