草庐IT

push_front

全部标签

git - 为给定域的 git push 指定 SSH key

我有以下用例:我希望能够推送到git@git.company.com:gitolite-admin使用用户的私钥gitolite-admin,虽然我想推到git@git.company.com:some_repo使用“我自己的”私钥。AFAIK,我无法使用~/.ssh/config解决此问题,因为在这两种情况下用户名和服务器名是相同的。因为我主要使用自己的私钥,所以我在~/.ssh/config中定义了它对于git@git.company.com.有谁知道覆盖用于单个git的key的方法吗?调用?(另外:gitolite根据key区分谁在进行推送,因此在访问、所有权和审计方面,user

git - 为给定域的 git push 指定 SSH key

我有以下用例:我希望能够推送到git@git.company.com:gitolite-admin使用用户的私钥gitolite-admin,虽然我想推到git@git.company.com:some_repo使用“我自己的”私钥。AFAIK,我无法使用~/.ssh/config解决此问题,因为在这两种情况下用户名和服务器名是相同的。因为我主要使用自己的私钥,所以我在~/.ssh/config中定义了它对于git@git.company.com.有谁知道覆盖用于单个git的key的方法吗?调用?(另外:gitolite根据key区分谁在进行推送,因此在访问、所有权和审计方面,user

git 错误 : failed to push some refs to remote

我现在不能推送,尽管我昨天可以推送。当我使用gitpushoriginmaster时,出现错误:$gitremote-voriginhttps://github.com/REDACTED.git(fetch)originhttps://github.com/REDACTED.git(push)$gitpushoriginmasterUsernamefor'https://github.com':REDACTEDPasswordfor'https://REDACTED@github.com':Tohttps://github.com/REDACTED.git![rejected]mast

git 错误 : failed to push some refs to remote

我现在不能推送,尽管我昨天可以推送。当我使用gitpushoriginmaster时,出现错误:$gitremote-voriginhttps://github.com/REDACTED.git(fetch)originhttps://github.com/REDACTED.git(push)$gitpushoriginmasterUsernamefor'https://github.com':REDACTEDPasswordfor'https://REDACTED@github.com':Tohttps://github.com/REDACTED.git![rejected]mast

git - 在 push Git 之前 merge 多个提交

这个问题在这里已经有了答案:HowdoIsquashmylastNcommitstogether?(42个回答)关闭4年前。我的本​​地存储库中有一堆主题相似的提交。在推送到远程之前,我想将它们组合成一个提交。我该怎么做?我认为rebase可以做到这一点,但我无法理解文档。

git - 在 push Git 之前 merge 多个提交

这个问题在这里已经有了答案:HowdoIsquashmylastNcommitstogether?(42个回答)关闭4年前。我的本​​地存储库中有一堆主题相似的提交。在推送到远程之前,我想将它们组合成一个提交。我该怎么做?我认为rebase可以做到这一点,但我无法理解文档。

git - 远程源已存在于 'git push' 到新存储库

我在GitHub上的某个位置有我的项目,git@github.com:myname/oldrep.git。现在我想将所有代码推送到其他位置的新存储库,git@github.com:newname/newrep.git。我使用了命令:gitremoteaddorigingit@github.com:myname/oldrep.git但我收到了这个:fatal:remoteoriginalreadyexists. 最佳答案 您收到此错误是因为“来源”不可用。“起源”是一个约定,不是命令的一部分。"origin"是远程存储库的本地名称。例

git - 远程源已存在于 'git push' 到新存储库

我在GitHub上的某个位置有我的项目,git@github.com:myname/oldrep.git。现在我想将所有代码推送到其他位置的新存储库,git@github.com:newname/newrep.git。我使用了命令:gitremoteaddorigingit@github.com:myname/oldrep.git但我收到了这个:fatal:remoteoriginalreadyexists. 最佳答案 您收到此错误是因为“来源”不可用。“起源”是一个约定,不是命令的一部分。"origin"是远程存储库的本地名称。例

git - 撤消 'git push'

这是我在我的supposed-to-be-stable分支上所做的...%gitrebasemasterFirst,rewindingheadtoreplayyourworkontopofit...Fast-forwardedalpha-0.3.0tomaster.%gitstatus#Onbranchalpha-0.3.0#Yourbranchisaheadof'origin/alpha-0.3.0'by53commits.#nothingtocommit(workingdirectoryclean)%gitpushFetchingremoteheads...refs/refs/he

git - 撤消 'git push'

这是我在我的supposed-to-be-stable分支上所做的...%gitrebasemasterFirst,rewindingheadtoreplayyourworkontopofit...Fast-forwardedalpha-0.3.0tomaster.%gitstatus#Onbranchalpha-0.3.0#Yourbranchisaheadof'origin/alpha-0.3.0'by53commits.#nothingtocommit(workingdirectoryclean)%gitpushFetchingremoteheads...refs/refs/he