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
相关推荐
CCPC不拿奖不改名18 小时前
大模型推理架构与开源生态知识整理
数据库·windows·python·架构·langchain·开源·github
redreamSo1 天前
一天涨 1800 星的 GitHub 榜首:AI 编程瓶颈变成了 token
人工智能·开源·github
逛逛GitHub1 天前
盘点 18 个 Kimi K3 外网爆火的案例,太令人惊艳了。
github
benchmark_cc1 天前
如何用 Python 进行多周期 K 线合成与时区对齐?基于 QuantDash 与 Pandas 的量化数据清洗实战(附 GitHub 源码)
开发语言·python·github·盯盘·pandas·quantdash·量化数据
luyingying1 天前
从 400 行到 30 个文件,我只做了一件事
github
武子康1 天前
GitHub Actions `pull_request_target` 与 Pwn Request:高权限工作流里的 Fork 代码执行风险(2026)
人工智能·github·ai编程
武子康1 天前
GitHub Models 7-30 退役全拆:Inventory + Capability Probe + Shadow Traffic + Brownout
人工智能·github·github copilot
咖啡星人k1 天前
GitHub Copilot 加入 Agent 浏览器:验证 Web 应用进入编码闭环
前端·人工智能·github·copilot·前端开发·ai agent
C+-C资深大佬1 天前
GitHub Actions 自动化运维实战:从零到一构建高效 CI/CD 流水线
运维·自动化·github
小弥儿2 天前
GitHub今日热榜 | 2026-07-19
人工智能·学习·github·知识图谱