我正在使用SmartGit,我正在尝试将我的最新提交推到一个裸存储库上,它肯定是在/media/webserver/git/projectname上完成的,但是我一直得到以下输出,有人知道出了什么问题吗?
谢谢
Push: Not all refs have been pushed.
'master' rejected (non-fast-forward)
Counting objects: 1
Counting objects: 29, done.
Delta compression using up to 2 threads.
Total 15 (delta 11),
编辑:如果您使用的是git bash,那么最好保持AUTOCRLF为FALSE。
git config --global core.autocrlf false
========================================================
我刚接触过git我在部署文件时遇到了问题.
我刚刚成功地提取了文件(?)使用命令,现在我试图推动..。
以下提交日志:(由于LF、CRLF或未跟踪文件错误,多次提交失败,因此有几次恢复)
在我被“推到原点/主人被拒绝”的时候
推时误差
hint: Updates were rejected because the tip
在将更改从本地推送到github企业时,获取以下错误。
remote: Resolving deltas: 100% (10/10), completed with 10 local objects.
remote: Jira-validation-hook.sh: execution exceeded 5s timeout
To https://github.abc.com/PLK/projectabc.git
error: failed to push some refs to 'https://github.abc.com/PLK/projecta
昨天我开始收到错误,当我尝试推送我的提交到repo时,如何修复它?而且我不是这个回购的管理员。
remote: You can only push your own commits in this repository
remote: Commit commitName was committed by <myName> <my@users.noreply.github.com>
To ssh://bitbucket.awg.ru/repo
! [remote rejected] branchName -> branchName (pre-receive hoo
每当我试图将rails应用程序推送到heroku时,我就会出错。我该怎么做才能解决这个问题?我做了git init,git添加.,git提交-m“完成”,git推heroku主人。
To https://git.heroku.com/shuabe.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://git.heroku.com/james.git'
hint: Updates were rejected because
我想将Bitbucket存储库镜像为另一个Bitbucket存储库。我使用一个shell脚本来管理它,它执行以下操作:
git clone --mirror <sourceUrl>
git remote set-url --push origin <targetUrl>
git push --mirror
现在,我在推送时得到了以下错误,因为Bitbucket不允许推送拉请求(源Bitbucket上创建的请求):
remote: You are attempting to update refs that are reserved for Bitbucket's
我的master分支在受保护。
我只想对主进行小的(一行修改)提交。
我不想做一个新的分支和主人合并。
但是当我在主服务器上推代码时,我会收到消息:
remote: GitLab: You are not allowed to push code to protected branches on this project.
To https://gitlab.com/xyz/api_xyz.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs
我在Android上做了一个项目,并将文件推送给Github。我的同事们可以完成这个项目,也可以工作。我自己对项目做了一些修改,但当我按下时,它会给我以下错误
推送拒绝:推到原点/主被拒绝
我在做linux的工作
我尝试了git推送-u源母版,得到了以下错误
To https://github.com/devilape/Iimpacttest.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https:/
由于以下错误,我在将更改从本地主机推送到远程主机时遇到问题:
remote: Processing changes: refs: 1, done
To ssh://xxxxx@gerrit.dev.xxxxx.net:29418/xxxxxx
! [remote rejected] HEAD -> refs/for/master (change 14823 closed)
error: failed to push some refs to 'ssh://xxxxx@gerrit.dev.xxxxx.net:29418/xxxxxx'
你知道我该怎么解决这个问题吗?
g
可能重复:
我试图推动原主机到git集线器,我一直被拒绝,它提示我一个用户名和密码,我相信它是正确的。
这就是我要犯的错误
To https://github.com/anderskitson/omrails.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/anderskitson/omrails.git'
To prevent you from losing history, n
当我键入git push origin master时,git中会显示以下错误消息:
To https://github.com/farrasdoko/RumahSakit.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/farrasdoko/RumahSakit.git'
hint: Updates were rejected because the tip of your current
我们在Team Foundation Service中使用git,并试图通过运行以下命令来找到删除远程分支的方法。
git push origin --delete TheBranchName
远程服务器一直拒绝,错误如下
! [remote rejected] TheBranchName (TF401026: The ForcePush permission is required to perform this action.) error: failed to push some refs to 'https://xxx.visualstudio.com/DefaultColl
我提交了一些本地更改,并试图将它们推送到远程分支。
然而,由于某种原因,我的改变被拒绝了。
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://app/GIT/app'
当我运行git status时,我看到以下消息:
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git
有几篇文章谈到了从GIT中删除文件或目录,但他们并没有解释如何将这些更改推送到主存储库中。
例如,可以很好地删除目录,但当我尝试将此更改推送到主Git代码库时,我被拒绝了:
! [rejected] master -> master (non-fast forward)
error: failed to push some refs to '/repo/project.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote
我对git很陌生。
在工作中,我们有一个远程存储库,我可以在本地进行更改,然后再向上推。
只是想确认一下我的工作流程是正确的。
git提取以获取对源/主的所有更改
git签出-b新分支来源/主站
git合并源/主(当我在当前的分支上工作时)
这是我一直在做我的工作的过程,但我一直收到这个恼人的错误:
error: failed to push some refs to 'ssh://xxxxx'
hint: Updates were rejected because the tip of your current branch is behind
hint:
好像我在做恶梦,当我推的时候,我总是犯这个错误。
remote: error: cannot lock ref 'refs/heads/master': Unable to create '/data/c01/n01/p/vp0443/data/d-389/r-13803389/refs/heads/master.lock': File exists.
remote:
remote: If no other git process is currently running, this probably means a
remote: git process cr
尝试将文件添加到我的存储库,当它返回为已拒绝时
! [rejected] master -> master (non-fast-forward) error: failed to push
some refs to 'SITE' hint: Updates were rejected because the tip of
your current branch is behind hint: its remote counterpart. Merge the
remote chsanges (e.g. 'git pull') hint: before pu
在Git中,主分支的更改应该集成到开发分支中。我先在本地磁盘中复制了DEV,然后将母版重定向到DEV分支。然后使用WinMerge手动比较文件。
但看来这个策略行不通。我做了一些搜索,其中一个解决办法是使用推“力”来修复它。我们还有其他优雅的方式吗?
以下是我的步骤:
aa@lenovo-pc MINGW64 /c/temp/TestGit2App (DevelopmentBranch)
$ git rebase -Xours master #keep the master changes first
# use WinMerge to merge changes back to files