1. 下載git工具包
鏈接:
https://git-scm.com/download/win
2. 右鍵打開git bash
登陸到自己的github賬戶
$ git config --global user.name "123"
$ git config --global user.email "123@163.com"
3. 創建本地文件夾
創建文件夾后,進入該文件夾,並將github上需要修改的項目pull到到當前文件夾
git clone https://github.com/ZZQzzq/....git
- 新增文件:
將文件拖拽到當前文件夾中(master),然后輸入如下指令:
$git add .
$git commit -m "add new data"
$git push -u origin master
- 刪除文件
輸入:
$ git rm -r '需要刪除的文件夾'
$ git commit -m "delete data"
$ git push -u origin master
