Bitbucket服務Visual Studio Code (VS code)


首先在Bitbucket上創建項目、倉庫。

參考:Bitbucket在PyCharm上提供Git服務(SSH Key方式)

clone項目倉庫

通過ssh方式克隆
通過ssh方式克隆

VS Code中SSH方式clone項目倉庫。如果沒有配置SSH,可能的結果:

> git clone git@bitbucket.org:caryqd/js_liaoxf.git d:\js_liaoxf --progress
Forbidden
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

使用https方式,VS Code里需要錄入口令。

通過http方式克隆
通過http方式克隆

點擊【Clone in VS Code】,自動打開VS code:

VS Code: Clone a new copy
VS Code: Clone a new copy

選擇Clone a new copy

選擇項目上級路徑;

錄入口令。后續push可以發現口令已記住。
input Atlassian account password
input Atlassian account password

克隆完成,選擇【在新窗口中打開】

clone finished
clone finished

VS Code新增文件,推送驗證

增加新文件

add file
add file

暫存所有文件

add file to staged
add file to staged

提交

committed
committed

推送

pushed
pushed

未提示再次錄入口令,可見口令已記住。

上Bitbucket查看,新增文件已推送完成。

bitbucket.org check
bitbucket.org check


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM