Git仓库:初始化

Git 全局设置:

git config --global user.name ""
git config --global user.email ""

创建 git 仓库:

mkdir hmosrc22
cd hmosrc22
git init 
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin git@gitee.com:baiyunlian/hmosrc22.git
git push -u origin "master"

已有仓库?

cd existing_git_repo
git remote add origin git@gitee.com:baiyunlian/hmosrc22.git
git push -u origin "master"
posted @ 2023-04-17 02:03  洪豆豆的记录  阅读(22)  评论(0编辑  收藏  举报