WEB將本地項目添加到git

來源:互聯網
上載者:User

標籤:amp   gen   gpg   自己的   win   登陸   密碼   com   輸入密碼   

前提下載好git bush
1.找到對應的檔案夾
git init
2.Windows下開啟Git Bash
$ ssh-keygen -t rsa -C "[email protected]"
3.登陸GitHub,點擊頭像,點擊“settings”,
4.點擊左邊的SSH and GPGkeys
5.點擊右上交 new ssh key,輸入title(隨便)
6.找到id_rsa.pub,如果不知道在哪裡 可以下載一個everything小工具尋找,點擊添加
7.輸入密碼,完成sshkey的設定
8.登陸GITHUB,建立遠程倉庫
9.輸入項目名和描述點擊確定,上面有一個ssh會有一個連結可以選擇
10.在本地串連遠程倉庫git remote add origin [email protected]:XXXX/XXXX.git 這個要變成自己的
11.執行 git add . 先把自己的專案檔添加到暫存區
12.git commit -m ‘提交備忘‘
13.git push origin master 提交到遠程倉庫

WEB將本地項目添加到git

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.