GitHub使用教程
1、注册GitHub账号
2、下载Git
官网Windows版本的Git下载
一路默认安装即可。
点击“ git-bash.exe ”操作Git。
本地创建ssh key,添加公钥。
使用ssh -T git@github.com指令查看公钥是否配置成功。
3、将代码上传至GitHub
常用命令:
git init //把这个目录变成Git可以管理的仓库
git add 文件名 //把该文件变成Git可以管理的仓库
git commit -m "注释" //把文件提交到仓库
git remote add origin GitHub仓库的地址 //关联远程仓库
git push -u origin master //把本地库的所有内容推送到远程库上
4、GitHub的两种上传代码的方式
分为HTTPS和ssh两种。
参考博客 GitHub的两种上传代码的方式
5、GitHub上删除仓库或者文件夹
删除仓库:直接在仓库所在界面选择setting,再删除即可。
删除文件:选用命令行的方式 删除github中某个文件夹
git rm -r ***