title: git常用命令 date: 2022-07-15 22:56:19 tags: git
相关解释 :
BRANCH_NAME
: 分支的名字
- 默认远程仓库的地址名称为 origin
git push origin --delete {BRANCH_NAME}
git remote set-url origin {URL}
git checkout {ANOTHER_BRANCH}
git branch -D {BRANCH_NAME}
git branch -m {NEW_NAME}
git checkout -b {BRANCH_NAME} origin/{BRANCH_NAME}
git pull origin master:{BRANCH_NAME}
Git error "object file ... is empty"?
how can i fix the git error object file is empty/12371337#12371337
先试一下
git pull
find . -type f -empty -delete -print
git fsck --full
tail -n 2 .git/logs/refs/heads/main
git show hash