git 提交本地文件,刪除文件夾,修改文件等


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
  1. 新增文件:
    將文件拖拽到當前文件夾中(master),然后輸入如下指令:
$git add .

$git commit -m "add new data"

$git push -u origin master

  1. 刪除文件
    輸入:

$ git rm -r  '需要刪除的文件夾'

$ git  commit -m "delete data"

$ git push -u origin master


免責聲明!

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



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