git上传或下载

本地项目放到码云

1、本地文件

初始化 git init

2、添加到暂存区

git add .

3、提交到本地仓库

git commit -m ‘first commit’

4、如需关联远程仓库 (拉取或上传)

git remote add origin 仓库地址

如:git remote add origin https://gitee.com/xxxxx/test3.9.git

5、把本地代码推送到远程的一个仓库 (拉取(pull) 或上传)

git push origin master

(1)需要登录账户密码

(2)也可能出现代理端口报错

解决方法:

git config --global --unset http.proxy
git config --global --unset https.proxy

posted @ 2023-03-09 18:05  __username  阅读(19)  评论(0编辑  收藏  举报

本文作者:DIVMonster

本文链接:https://www.cnblogs.com/guangzan/p/12886111.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。