【Git】vscode链接github拉去镜像

1.拉取别人的项目到自己的仓库

2.回到自己的仓库拉取文件到vscode里面下载

使用vscode进入虚拟机

推送到自己的仓库上面

在 github 页面将修改的内容 PR 到 Tutorial

创建一个个人仓库

代码如下

cd demo

git clone https://github.com/3154067760/Tutorial.git

cd Tutorial/

查看分支内容

git branch -a

这个命令的作用是创建一个名为 "camp3" 的新分支,并将其基于远程仓库中的 "origin/camp3" 分支。

git checkout -b camp3 origin/camp3

git checkout -b camp3_5341 # 自定义一个新的分支

创建自己的破冰文件

touch ./data/Git/task/camp3_5341.md # 修改为自己的问卷ID

提交更改到分支

git add .

git commit -m "add git_5341_introduction" # 提交信息记录

git push origin camp3_5341

相关推荐
Morpheon5 小时前
Cursor 1.0 版本 GitHub MCP 全面指南:从安装到工作流增强
ide·github·cursor·mcp
LinXunFeng7 小时前
Flutter - GetX Helper 助你规范应用 tag
flutter·github·visual studio code
草梅友仁9 小时前
AI 图片文字翻译与视频字幕翻译工具推荐 | 2025 年第 23 周草梅周报
开源·github·aigc
qianmoQ13 小时前
GitHub 趋势日报 (2025年06月04日)
github
abcnull14 小时前
github中main与master,master无法合并到main
git·github
星哥说事15 小时前
使用VuePress2.X构建个人知识博客,并且用个人域名部署到GitHub Pages中
开源·github
勤劳打代码16 小时前
步步为营 —— Github Connection refused 分层诊断
github
寻月隐君17 小时前
深入解析 Rust 的面向对象编程:特性、实现与设计模式
后端·rust·github
qianmoQ1 天前
GitHub 趋势日报 (2025年05月31日)
github
油泼辣子多加1 天前
2025年06月06日Github流行趋势
github