Github - git push

发布时间 2023-08-03 22:17:41作者: ZhangZhihuiAAA
zzh@ZZHPC:/zdata/Github/zzhrepo1$ git status
On branch main
Your branch is based on 'origin/main', but the upstream is gone.
  (use "git branch --unset-upstream" to fixup)

nothing to commit, working tree clean

zzh@ZZHPC:/zdata/Github/zzhrepo1$ git push
fatal: unable to access 'https://github.com/XXX/zzhrepo1.git/': Failed to connect to github.com port 443 after 130299 ms: Connection timed out


zzh@ZZHPC:/zdata/Github/zzhrepo1$ git branch --unset-upstream
zzh@ZZHPC:/zdata/Github/zzhrepo1$ git push -u -f origin main
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 6 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (7/7), 549 bytes | 549.00 KiB/s, done.
Total 7 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/XXX/zzhrepo1.git
 * [new branch]      main -> main
Branch 'main' set up to track remote branch 'main' from 'origin'.