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
相关推荐
Hommy884 小时前
【开源剪映小助手】字幕接口
开源·github·aigc·剪映小助手·视频剪辑自动化
一袋米扛几楼986 小时前
【Git】规范化协作:详解 GitHub 工作流中的 Issue、Branch 与 Pull Request 最佳实践
前端·git·github·issue
尘埃落定wf6 小时前
# GitHub CLI:告别繁琐的 Git 命令,让开发更高效
git·github
zh_xuan7 小时前
上传api调试工具到github
github
AIMath~9 小时前
彻底删除 GitHub 仓库中特定文件夹的完整指南
github
DogDaoDao10 小时前
【GitHub】OpenClaw:开源个人AI助手的新标杆
人工智能·深度学习·开源·大模型·github·ai编程·opeclaw
一点一木18 小时前
🚀 2026 年 4 月 GitHub 十大热门项目排行榜 🔥
人工智能·github
宝桥南山20 小时前
AI - 在命令行中尝试一下ACP(Agent Client Protocol)通信
microsoft·微软·github·aigc·copilot
拾贰_C1 天前
【Github | GitHub Copilot | 学生认证】 GitHub Copilot学生如何认证
github
旅之灵夫1 天前
【GitHub项目推荐--OpenArm:开源7自由度仿人机械臂平台】
github