创建仓库
clone
git clone "url" //clone代码库
cd "reposName" //切换到本地库
commit
//添加到本地暂存区
git add ./ //把当前路径下的所有文件,添加到待上传的文件列表中
//暂存区代码提交到本地仓库
git commit -am "commit_st"
//推送到远程服务器
git push origin master
debug
fatal: the remote end hung up unexpectedly
//可能原因: 推送文件太大
//修改提交缓存大小
git config --global http.postBuffer 524288000
Permission denied…
//可能原因需要账号密码
/*
1.clone with ssh, 不能输入账号, 改为clone with http 因为我的账号是邮箱号, 需要修改
2.密码, 密码...
*/