Git的使用

git的使用 

 

在码云上创建仓库

 

 


使用git将项目上传到码云

简易的命令行入门教程:

Git 全局设置:

git config --global user.name "fivenian1"
git config --global user.email "8431405+fivenian1@user.noreply.gitee.com"

创建 git 仓库:

mkdir booksys    创建一个文件夹
cd booksys     进入文件夹中   
git init      创建git仓库, 就是这个文件夹
touch README.md    创建一个文件
git add README.md   
git commit -m "first commit"
git remote add origin https://gitee.com/fivenian1/booksys.git
git push -u origin master

已有仓库?

cd existing_git_repo
git remote add origin https://gitee.com/fivenian1/booksys.git
git push -u origin master
































posted @ 2020-12-10 16:04  死里学  阅读(88)  评论(0)    收藏  举报