31 lines
672 B
Markdown
31 lines
672 B
Markdown
# devEco_harmony
|
|
|
|
### 从命令行创建一个新的仓库
|
|
|
|
- git init
|
|
- git checkout -b main
|
|
- git add .
|
|
- git commit -m "first commit"
|
|
- git remote add origin https://gitea.vlos.net/jafar.o.jeh/devEco_harmony.git
|
|
- git push -u origin main
|
|
|
|
### 从命令行推送已经创建的仓库
|
|
|
|
- git remote add origin https://gitea.vlos.net/jafar.o.jeh/devEco_harmony.git
|
|
- git pull origin main
|
|
|
|
### dev 同步到 main分支
|
|
|
|
- git checkout main
|
|
- git merge dev
|
|
- git add .
|
|
- git commit -m "更新内容"
|
|
- git push origin main
|
|
|
|
### 发布release
|
|
|
|
- git checkout -b release/v0.0.1
|
|
- git tag -a v0.0.1 -m "Release v0.0.1"
|
|
- git push origin release/v0.0.1
|
|
- git push origin v0.0.1
|