git使用
1.注册github账号(https://github.com)
2.下载安装git工具(https://git-for-windows.github.io/)
3.github上新建仓库(New repository)test,复制仓库地址https://github.com/mygit/test.git
4.将仓库克隆到本地(D:\myproject)
1)D:\myproject下,右键---Git Bush Here
2)git config --global user.name "your_gihubname"(或git config --global user.email "your_githubemail")
3)git clone https://github.com/mygit/test.git,即可将github仓库克隆到本地
5.github仓库有更新,更新内容到本地
D:\myproject\test---右键---Git Bush Here---git pull
6.上传本地更新内容到仓库(D:\myproject\test\newtest\hello.txt)
1)D:\myproject\test---右键---Git Bush Here---cd newtest---git add .(如果单独更新某文件,则“.”换成文件名)
2)git commit -m "commit_description"
3)git push -u origin master

浙公网安备 33010602011771号