Git初始化

1. git全局设置

git config --global user.name "my name"
git config --global user.email "008@qq.com"

2. 创建git仓库

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

3. 已有仓库

 

cd existing_git_repo
git remote add origin git@gitee.com:fresh_sheng/spider.git
git push -u origin "master"

 

posted @ 2023-01-13 14:15  xqs42b  阅读(121)  评论(0编辑  收藏  举报