git 提交本地文件,删除文件夹,修改文件等

1. 下载git工具包

链接:

https://git-scm.com/download/win

2. 右键打开git bash

登陆到自己的github账户

$ git config --global user.name "123"

$ git config --global user.email "[email protected]"

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

2) 删除文件
输入:


$ git rm -r  '需要删除的文件夹'

$ git  commit -m "delete data"

$ git push -u origin master

猜你喜欢

转载自www.cnblogs.com/zzq-123456/p/9577258.html