上傳到碼雲上

在要上傳的文件內打開 Git Bash Here

例如:我需要上傳MTWechatCatering文件,在MTWechatCatering文件目錄下,打開git bash here

npm instal

npm install

git pull    ------拉取項目

git clone https://gitee.com/q-y-p/sham.git    更新的項目        https://gitee.com/q-y-p/sham.git 是碼雲上項目的路徑

git add src/pages/user.wpy        ------添加user.pwy文件

git commit -m"進行添加文件的說明"

注: 只有第一次上傳時,需要賬號和密碼(登陸碼雲的賬號和密碼)

git config --global user.email "賬號"

gitconfig --global user.name "用戶名"

 

git push origin master    ------推上git

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章