草庐IT

WAP-PUSH

全部标签

git - 如何使 git push origin --force ;在 Visual Studio 团队资源管理器中

我最近遇到了一个问题,我不得不忽略我的最后一次提交,所以在命令行上我做了以下操作:gitpushorigin--force这工作正常,但是我通常从VisualStudioTeamExplorer中进行推/pull,但是我无法找到如何--force从那里进行推送是否可以或只能通过命令行完成? 最佳答案 您可以在visualstudio2017中启用--force而无需使用命令提示符,如下所示打开团队资源管理器。TeamExplorer>Settings>Git>GlobalSettings勾选enablepush--force复选框,

git push 说一切都是最新的,但肯定不是

我有一个公共(public)存储库。没有其他人对它进行fork、pull或做任何其他事情。我对一个文件做了一些小改动,成功提交,并尝试推送。它说“一切都是最新的”。没有分支机构。我对git非常非常陌生,我不明白到底发生了什么。gitremoteshoworigin告诉我:HEADbranch:masterRemotebranch:mastertrackedLocalrefconfiguredfor'gitpush':masterpushestomaster(uptodate)有什么想法可以让我明白它不是最新的吗?谢谢更新:混帐状态:#Onbranchmaster#Untrackedfi

git - Eclipse 上的 EGit : How to git push --force?

我遇到了一个问题,我的起源/分支与我的本地分支不同步,见下文当我尝试从我的本地“暂存”分支推送到原始/暂存分支时,我收到“拒绝-非快进”错误。我在WindowsPC上使用Eclipse和EGit模块。来自anotherposthere我发现我可以通过“gitpush--forceoriginstaging”解决我的问题,用我的本地分支覆盖origin/staging分支。但是,我没有在EGit中看到该选项,我也没有看到如何在EGit中打开控制台来执行此操作?有谁知道我是否可以在EGit中执行此操作?好的-解决了我自己的问题。看来我遇到了没有被推回原点/暂存的提交问题。找到anoverv

django - 由于 "Build stream timed out",无法 git-push 到 heroku

我在heroku上有一个Django应用程序,我之前提交并推送了很多次,但在我最后一次尝试推送时我收到了这个错误(而且我一直收到):$gitpushherokumasterCountingobjects:16,done.Deltacompressionusingupto4threads.Compressingobjects:100%(9/9),done.Writingobjects:100%(9/9),24.22KiB|0bytes/s,done.Total9(delta7),reused0(delta0)remote:Compressingsourcefiles...done.rem

Git Bash : remote error: You can't push to git://github. com/

请帮帮我,我该如何解决这个错误?$gitpushorigindevfatal:remoteerror:Youcan'tpushtogit://github.com//name_of_repo.gitUsehttps:://github.com//name_of_repo.git 最佳答案 使用HTTPS或SSHURL。而不是git://github.com/user/repo.git使用其中之一:https://github.com/user/repo.gitgit@github.com:user/repo.git您可以像这样在您的

git - 为什么 "git push"被拒绝? ("git pull"没有帮助)

我当前的分支是my_branch。尝试将更改推送到我得到的远程仓库:$gitpushCountingobjects:544,done.Deltacompressionusingupto4threads.Compressingobjects:100%(465/465),done.Writingobjects:100%(533/533),2.04MiB|1.16MiB/s,done.Total533(delta407),reused0(delta0)Togit@......git4ed90a6..52673f3my_branch->my_branch![rejected]master->m

git - 无论如何要撤消 git push -f 吗?

如果我使用push-f重叠远程存储库上的最后一次提交,即A,其他人在我推送之前已经pull了A。无论如何要撤消此操作以免给他人带来麻烦?对push-f有用吗?对“假装”没有任何影响的原创?或者git如何决定本地仓库是否与远程跟踪仓库不同? 最佳答案 有几种方法可以在推送之前找出原始HEAD(ORIG_HEAD可能不是其中之一):终端回滚如果您足够幸运地仍然打开终端,那么在进行推送时会有一些输出,如下所示:...Touser@host:repo.git+abcdef0...1234567HEAD->branchname(forcedu

git push origin master :refs/heads/master what does this do

当我在我的gitolite存储库上创建一个新的存储库时,我总是必须输入以下命令才能开始将代码推送到服务器。gitpushoriginmaster:refs/heads/master它有什么作用?我的猜测是,这与不确定的头部引用有关。谁能给我解释一下? 最佳答案 这个命令分为三个部分:gitpush这会调用推送命令origin这会命名您要推送到的Remote。这是存储在.git/config中的命名Remote之一(您可以使用gitremote列出这些Remote)、URL或token.这意味着当前存储库。master:refs/he

git - 在 git push 上硬重置

我在要推送的远程仓库上有一个接收后Hook脚本,它执行gitreset--hard像这样:$gitpushopalCountingobjects:74,done.Deltacompressionusingupto2threads.Compressingobjects:100%(45/45),done.Writingobjects:100%(53/53),16.68KiB,done.Total53(delta20),reused0(delta0)remote:warning:updatingthecurrentbranchremote:HEADisnowat88f1e35tweaklav

git - 我无法 push git?

gitpushoriginmaster显示错误failedtopushsomerefsto'git@github.com:xyz/abc.git'Topreventyoufromlosinghistory,non-fast-forwardupdateswererejectedMergetheremotechangesbeforepushingagain.Seethe'Noteaboutfast-forwards'sectionof'gitpush--help'fordetails.这是什么?如何恢复? 最佳答案 参见"pushing