1,百度搜索“码云”,点击“进入官网”
2, 账号登录或新注册
3,新建仓库
仓库名称依据你现有情况就OK
4,如果还没有下载git的记得要先下载哦(除了存储位置需要变一下,其余无脑式冲就好)
https://git-scm.com/download/win
5,在一切准备就绪之后,就可以找到代码存储路径的地方,输入“cmd”,然后就出现小黑屏啦。
Git 全局设置:
git config --global user.name "xiaoyanzi"
git config --global user.email "10738674+zyandlwj@user.noreply.gitee.com"
创建 git 仓库:
mkdir test01
cd test01
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/ZyAndLwj/test01.git
git push -u origin "master"
已有仓库?
cd existing_git_repo
git remote add origin https://gitee.com/ZyAndLwj/test01.git
git push -u origin "master"