A. 需要配置代理的先配置配置代理,为了不和公司git服务器冲突,所以配置的代理不能是全局的。
使用local的意思就是只配置该仓库的代理而已。全局的话需要使用global
git config --local https.proxy IP:PORT
查看自己配置是否成功使用命令
git config --local https.proxy
B. 第一次上传到github还需要初始化仓库
git init --bare (repository name)
C. git add .#t添加所有文件到缓存
D. git commit -m "comment"
E. git push https://github.com/XXXX/xxx.git
git 上传文件到github,自己第一次实际操作的记录
最新推荐文章于 2023-05-12 11:25:57 发布