You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
4 months ago | |
|---|---|---|
| README.md | 4 months ago | |
| rocketgit本地Git仓库_成功(2025).txt | 4 months ago | |
| ttkx_dc.json | 4 months ago | |
README.md
推送代码
touch README.md
git init
git checkout -b master
git add README.md
git commit -m "first commit"
git remote add origin https://gitea.windymuse.com.cn/dongge/files.git
git push -u origin master
git add . && git commit -m 'xx' --no-verify && git push origin master
发生错误时
- 移除并重新添加远程仓库
有时,重新配置远程仓库可以解决这个问题。
git remote rm origin
git remote add origin https://gitea.windymuse.com.cn/dongge/files.git
- 拉取最新的远程分支
在推送之前,确保你的本地分支是最新的。
git pull origin master
- 强制推送(谨慎使用)
如果你确定要覆盖远程分支,可以使用强制推送。
git push -f origin master