This website requires JavaScript.
Explore
Help
Register
Sign In
jafar.o.jeh
/
gitea_init
Watch
1
Star
0
Fork
0
You've already forked gitea_init
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
5
Commits
2
Branches
0
Tags
4abae80b7fbea37ae0c1c66f4eb58d6dfe5799a2
Go to file
Code
Clone
HTTPS
Tea CLI
Open with VS Code
Open with VSCodium
Open with Intellij IDEA
Download ZIP
Download TAR.GZ
Download BUNDLE
林觅
4abae80b7f
更新git操作
2026-04-08 10:00:15 +08:00
README.md
更新git操作
2026-04-08 10:00:15 +08:00
README.md
gitea_init
线上部署gitea
关联线上库
git remote add profile
https://gitea.vlos.net/jafar.o.jeh/gitea_init.git
git pull profile main
更新线上库
git add .
git commit -m "更新信息"
git push profile main
合并分支,合并dev->main
git checkout main #切换到 main 分支
git merge dev #令将分支dev合并到 main 分支
git merge --continue #解决合并冲突(如果需要)
git add . && git push profile main # 正常更新main分支到线上
远程文件强制覆盖本地
git fetch profile
git checkout your-branch-name # 确保你在正确的分支上
git reset --hard profile/your-branch-name # git reset --hard profile/master
Reference in New Issue
View Git Blame
Copy Permalink
Description
线上部署gitea
Readme
29
KiB
Languages
Caddyfile
100%