英文:
GIT/GITHUB/NEXTJS
问题
我有一个Next.js项目,我想将更改推送到私有存储库。问题是在我运行git push --force origin main
之后,
我得到:
> 正在枚举对象:15502,完成。\
计算对象:100%(15502/15502),完成。\
使用最多4个线程进行增量压缩\
正在压缩对象:100%(10926/10926),完成。\
正在写入对象:100%(15502/15502),298.04 MiB | 4.02 MiB/s,完成。\
总共15502个(增量4468个),重用14796个(增量4057个),未重新使用0个
这意味着一切都进行得很顺利,但当我转到我的存储库时,什么也没有发生。
英文:
I have a nextjs project and I want to push the changes to a private repository. The problem is after I write git push --force origin main
I get:
>Enumerating objects: 15502, done.
Counting objects: 100% (15502/15502), done.
Delta compression using up to 4 threads
Compressing objects: 100% (10926/10926), done.
Writing objects: 100% (15502/15502), 298.04 MiB | 4.02 MiB/s, done.
Total 15502 (delta 4468), reused 14796 (delta 4057), pack-reused 0
which means that everything has gone alright, but when I go to my repository nothing happened.
答案1
得分: 0
在你的终端中输入git branch -r
。
这将显示仓库的远程分支。
如果显示的是你所期望看到的内容,你可能需要查看你的 GitHub 账户,并检查“分支”。如果你的远程分支命名不同,将不会在首页显示任何更改,你需要通过向自己提交 PR 在 GitHub 上合并它们。
如果这不是你所期望看到的内容,请输入git remote set-url origin git@github.com:User/UserRepo.git
。
英文:
type git branch -r
in your terminal.
this will show your remote branch for the repository.
If it is what you expect to see, you may need to look at your github account, and check "branches". If your remote branch is named something different, no changes will show on the front page and you will have to merge them on github by submitting a PR to yourself.
If that is not what you expect to see, type git remote set-url origin git@github.com:User/UserRepo.git
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论