标签: bitbucket

与Github和Bitbucket的命令相同/不同?怎么样git-sh?

使用bitbucket和github的不同命令有什么相似之处或不同之处?(我是github用户)

我目前正在使用git-sh,这是否与bitbucket兼容?

git github bitbucket

2
推荐指数
1
解决办法
866
查看次数

Git推错误:"![拒绝]开发 - >开发(非快进)"

我有一个提交列表(最新的第一个):

abcd4 message
abcd3 wrong commit message2
abcd2 wrong commit message1
abcd1 message
Run Code Online (Sandbox Code Playgroud)

我需要改变提交的信息abcd2abcd3.我是按照以下方式做的:

rebase -i abcd1
Run Code Online (Sandbox Code Playgroud)

然后,在交互模式取代我pickreword,更改必要提交信息并保存更改.这里一切都很好.

问题如下:分支被完全推送到Bitbucket,因此Bitbucket上也有错误的提交消息.

我试图推动更改,但得到错误:

 ! [rejected]        develop -> develop (non-fast-forward)
error: failed to push some refs to 'https://login@bitbucket.org/user/repository.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push …
Run Code Online (Sandbox Code Playgroud)

git bitbucket

2
推荐指数
1
解决办法
9494
查看次数

远程和集中式存储库在git中是一样的吗?

它们似乎是同义词,但我还不能说清楚.

立足这一关的颠覆与DVCS辩论在这里.

git github bitbucket

2
推荐指数
1
解决办法
121
查看次数

git checkout后,Git丢失了本地提交的文件

我从另一个分支切换,因此可以进行推送。签出时,文件在我的编辑器中打开,这可能导致权限被拒绝错误。git是否丢失了我的所有文件?我不知道如何让他们回来。这是我的工作-文件丢失了, js/Messages目录 templates/Messages目录这些是在我执行git操作时在编辑器中打开的

C:\Users\***\Documents\myproject>git pull
Password for 'https://********@bitbucket.org':
Already up-to-date.

C:\Users\***\Documents\myproject>git checkout paymentmodule
error: cannot stat 'www/js/Messages': Permission denied
error: cannot stat 'www/js/Messages': Permission denied
error: cannot stat 'www/templates/Messages': Permission denied

C:\Users\***\Documents\myproject>git checkout paymentmodule
Switched to branch 'paymentmodule'

C:\Users\***\Documents\myproject>git push origin paymentmodule
Password for 'https://******@bitbucket.org':
To https://*******@bitbucket.org/********/myproject.git
 ! [rejected]        paymentmodule -> paymentmodule (non-fast-forward)
error: failed to push some refs to 'https://********@bitbucket.org/********/myproject.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. …
Run Code Online (Sandbox Code Playgroud)

git github bitbucket

2
推荐指数
1
解决办法
464
查看次数

如何在android studio上使用bitbucket源代码控制?

我知道这种问题之前有问题.但我看了所有旧的答案,没有任何工作.

我尝试使用bitbucket的'插件' - 但它不起作用.我尝试将android studio代码库定义为GIT,并将bitbucket定义为我在某些手册中找到的存储库 - 但仍然根本不起作用.

有什么办法吗?

顺便说一句:我有代码,我想从android工作室签入.

请帮忙.

bitbucket android-studio

2
推荐指数
1
解决办法
1674
查看次数

Gerrit项目未复制到bitbucket,错误:通道未打开

我们的Gerrit项目之一在某个日期之后停止工作,并出现以下错误:

Gerrit日志中的错误/ var / gerrit / logs / error_log:[2016-07-29 17:59:51,676]

com.googlesource.gerrit.plugins.replication.ReplicationQueue错误:无法复制到git@bitbucket.org:company / product.git org.eclipse.jgit.errors.TransportException:git@bitbucket.org:company / product.git:渠道没有打开。在org.eclipse.jgit.transport.JschSession $ JschProcess。(JschSession.java:154)在org.eclipse.jgit.transport.JschSession $ JschProcess。(JschSession.java:118)在org.eclipse.jgit.transport.JschSession org.eclipse.jgit.transport.TransportGitSsh $。 org.eclipse.jgit.transport.Transport.push(Transport.java:1167)的.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:154)org.eclipse.jgit.transport.Transport.push(Transport) com.googlesource.gerrit.plugins.replication.PushOne.pushVia(PushOne.java:307)处的com.googlesource.gerrit.plugins.replication.PushOne.runImpl(PushOne.java:252)处的.java:1213)。 googlesource.gerrit.plugins.replication.PushOne。com.googlesource.gerrit.plugins.replication.PushOne.access $ 000(PushOne.java:71)处的runPushOperation(PushOne.java:207)com.googlesource.gerrit.plugins.replication.PushOne $ 1.call(PushOne.java: 186),位于com.google.gerrit.server.util.RequestScopePropagator的com.google.gerrit.server.util.RequestScopePropagator $ 5.call(Request.Propergator.java:222)的com.googlesource.gerrit.plugins.replication.PushOne $ 1.call(PushOne.java:183)处。 com.google.gerrit.server.git.PerThreadRequestScope $ Propagator $ 1.call(PerThreadRequestScope.java:75)的com.google.gerrit.server.git.PerThreadRequestScope $ Propagator $ 1.call(PerThreadRequestScope.java:75)的com.googlesource.gerrit.plugins .replication.PushOne.run(PushOne.java:183)(位于java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)位于java.util.concurrent.FutureTask.run(FutureTask.java:262) java.util.concurrent。在com.google.gerrit.server.git.WorkQueue $ Task.run()处的ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 201(ScheduledThreadPoolExecutor.java:178)在java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)。 .java:337),位于java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145),位于java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615),位于java.lang.Thread.run( Thread.java:745)由以下原因引起:java.lang.Thread.run(Thread.java:745)上的runWorker(ThreadPoolExecutor.java:1145)在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)在原因:java.lang.Thread.run(Thread.java:745)上的runWorker(ThreadPoolExecutor.java:1145)在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)在原因: com.jcraft.jsch.JSchException:通道未打开。在org.eclipse.jgit.transport.JschSession $ JschProcess。(JschSession.java:150)的com.jcraft.jsch.Channel.connect(Channel.java:197)处... 25另外

我们的Gerrit版本是2.6.1,安装在AWS的CentOS 6.8版上。

我的gerrit复制配置是:

[remote "bitbucket"]
    url = git@bitbucket.org:qpidhealth/${name}.git
    push …
Run Code Online (Sandbox Code Playgroud)

git replication bitbucket jsch gerrit

2
推荐指数
1
解决办法
756
查看次数

Bitbucket没有显示所有分支

我在bitbucket上有一个包含三个分支的存储库.我能够使用一个好的旧git branch --remote命令列出远程分支,一切都很完美.但是,当我使用浏览器访问我的存储库时,我只能看到两个分支.有人请帮忙.Bitbucket只吃了我的分店

git repository bitbucket remote-branch git-branch

2
推荐指数
1
解决办法
6215
查看次数

2
推荐指数
2
解决办法
2513
查看次数

如何将bitbucket中的repo同步到Visual Studio团队服务?

我是VSTS平台的新手.在我的一个项目中,我试图将bitbucket源代码控制集成到VSTS.通过这种方式,我应该能够看到bitbucket上的更新到VSTS帐户上.

我尝试过在VSTS上创建构建,但这只显示了所选的bitbucket存储库的提交历史记录.

有没有办法管理VSTS上的所有bitbucket更改作为源代码控制?

bitbucket bitbucket-api azure-devops azure-pipelines azure-devops-rest-api

2
推荐指数
1
解决办法
5150
查看次数

无法使用git安装私人python软件包

我正在尝试使用以下命令从带有sshkeys的bitbucket存储库中安装私有python软件包

pip install git+ssh://git@bitbucket.org:username/package.git
Run Code Online (Sandbox Code Playgroud)

但我得到以下错误。

ssh:无法解析主机名bitbucket.org:pak-sign:名称或服务未知(致命):无法从远程存储库读取。

请确保您具有正确的访问权限,并且存储库存在。命令“ git clone -q ssh://git@bitbucket.org:username / package.git / tmp / pip-7j4r53en-build”失败,错误代码为128

但是当我尝试克隆此存储库ssh时,它工作正常,我能够成功克隆它。我确定我的ssh-keys是正确的,并且存储库存在。我尝试了各种解决方案,但仍然无法安装。任何帮助表示赞赏。

python git pip github bitbucket

2
推荐指数
1
解决办法
414
查看次数