在要上傳的文件內打開 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 "用戶名"