VS Code 啟程-介紹視頻-版本控制
本文章屬 up 翻譯,侵權即刪
在本篇教程中,我們將學習如何使用基礎的 Git 版本控制。為了解更多關于集成 Git 的支持,涉及到如何使用遠程儲存庫(repositories),請參閱下面提及的 相關資源[https://code.visualstudio.com/docs/introvideos/versioncontrol#_related-resources]

從視頻列表中選擇其他視頻:入門視頻[https://code.visualstudio.com/docs/getstarted/introvideos]
視頻要點
安裝 Git
https://git-scm.com/
打開文件夾
File > Open Folder (Ctrl+K Ctrl+O)
文件 > 打開文件夾 (Ctrl+K Ctrl+O)
源代碼控制
View > Source Control (SCM) (Ctrl+Shift+G)
查看 > 源代碼管理 (scm) (Ctrl+Shift+G)
初始化儲存庫
main
是默認分支打開控制面板
View > Command Palette (Ctrl+Shift+P)
查看 > 控制面板 (Ctrl+Shift+P)
重命名分支
Git: Rename Branch
文件版本控制狀態(tài)
U - 未追蹤的文件
A - 已添加的文件
M - 已修改文件
呈遞文件
Commit ??(check mark) button
Commit ??(復選標記) 按鈕
新建分支
Git: Create Branch
查看異同
Inline View button
階段改變
Stage Changes ? button
階段改變 + 按鈕
切換分支
狀態(tài)欄分支元素 (左下)
合并分支
Views and More Actions (...) > Branch > Merge Branch
查看及更多活動(...) > 分支 > 合并分支
發(fā)布至 GitHub
克隆儲存庫
Git: Clone > Clone from URL
Git:克隆 > 從 URL 中克隆
下個視頻
自定義 - 使用設置及快捷鍵 定制 VS Code[https://code.visualstudio.com/docs/introvideos/customize]
- 查看列出的全部視頻[https://code.visualstudio.com/docs/getstarted/introvideos]
相關資源
源代碼管理 - 閱讀更多關于集成 Git 的支持[https://code.visualstudio.com/docs/sourcecontrol/overview]
同 GitHub 一同工作 - 創(chuàng)建及管理 GitHub 問題(issues) 及拉請求(pull requests)[https://code.visualstudio.com/docs/sourcecontrol/github]
安裝綜述 - 安裝及啟動 VS Code[https://code.visualstudio.com/docs/setup/setup-overview]
up主能力有限,有些地方不通順,或者出現(xiàn)錯誤,歡迎在評論區(qū)指正
本文原地址:?https://code.visualstudio.com/docs/introvideos/versioncontrol
B站不支持跳轉站外鏈接,請復制到瀏覽器打開原文地址