Work Github相关

文章目录

  • [1 Visul Studio使用git控制版本](#1 Visul Studio使用git控制版本)
    • [1.1 git remote -v](#1.1 git remote -v)
      • [1.1.1 myrepo 是你自己 fork 到 GitHub 上的仓库(estimate123/LXL_XV6_LAB)。](#1.1.1 myrepo 是你自己 fork 到 GitHub 上的仓库(estimate123/LXL_XV6_LAB)。)
      • [1.1.2 origin 是 MIT 课程官方源,地址是 git 协议(git://)。](#1.1.2 origin 是 MIT 课程官方源,地址是 git 协议(git://)。)
    • [1.2 git push](#1.2 git push)

1 Visul Studio使用git控制版本

1.1 git remote -v

用途:查看当前目录下对应的远程仓库的名称 与地址

Visual Studio当前git情况

bash 复制代码
PS D:\Study\VMShareFolder\xv6-labs-2020> git remote -v
myrepo  https://github.com/estimate123/LXL_XV6_LAB.git (fetch)
myrepo  https://github.com/estimate123/LXL_XV6_LAB.git (push)
origin  git://g.csail.mit.edu/xv6-labs-2020 (fetch)
origin  git://g.csail.mit.edu/xv6-labs-2020 (push)

这台机器里给同一个仓库登记了 两个远程(remote),一个叫 myrepo,一个叫 origin。

含义一行行看:

1.1.1 myrepo 是你自己 fork 到 GitHub 上的仓库(estimate123/LXL_XV6_LAB)。

复制代码
	地址是 HTTPS,可以读也可以写(只要你登录过 GitHub)。

1.1.2 origin 是 MIT 课程官方源,地址是 git 协议(git://)。

复制代码
	git 协议默认只读,而且 MIT 那边并没有开放写权限给全世界,所以只要执行

git push origin syscall

服务器就会返回

fatal: remote error: access denied or repository not exported: /xv6-labs-2020

------正是你刚才看到的那句。

1.2 git push

当前在branch syscall的情况下,想要push代码使用以下命令

bash 复制代码
git push myrepo syscall
相关推荐
miofly27 分钟前
GitHub 周榜趋势速报 | 2026-11-01
开源·github
miofly30 分钟前
GitHub 日榜趋势速报 | 2026-11-01
开源·github
Sakura_j_h_9 小时前
EasyEDA PCB 快速设计Skills
c++·python·github
wflynn13 小时前
GitHub 今日推荐|Edge0:让大号 MoE 模型在一台 Mac 上流式跑起来
python·开源·github
用户别睡觉14 小时前
五大 RAG 开源项目对比 2026:Dify、RAGFlow、FastGPT、AnythingLLM、LightRAG
github
用户72737441388414 小时前
在 Windows 11 上从零装好 Carapace BIN:一次真实操作记录
github
miofly15 小时前
Claude Sonnet 5自主选药选坐标完成小鼠脑部手术,更强模型拒绝执行
开源·github
塞讯科技16 小时前
13,500 个分支被植入窃密工作流:Gheist 如何用 GitHub 令牌搬走仓库密钥
网络安全·ai·github·软件供应链安全·供应链投毒
阿智的AI开发笔记21 小时前
充了 200 块只跑出 3 条:AI 视频真正贵的地方,是「按次」和「按秒」的区别
github
GitHub实测笔记21 小时前
rtk 本机实测:给 AI Agent 砍掉 90% 的命令行噪音(Linux)
github