标签: bitbucket

如何从git存储库中删除目录?

我的GitHub存储库中有2个目录.我想删除其中一个.如果不删除并重新创建整个存储库,我怎么能这样做?

git github bitbucket delete-file git-bash

1138
推荐指数
11
解决办法
112万
查看次数

如何从bitbucket到github的所有分支移动git存储库?

将所有分支和完整历史从bitbucket移动到github的git存储库的最佳方法是什么?是否有脚本或命令列表我必须使用?

github bitbucket

316
推荐指数
7
解决办法
10万
查看次数

存储库访问被拒绝.通过部署密钥进行访问是只读的

成功克隆了来自heroku的repo并添加了另一个遥控器

1/ git clone git@heroku.com:[APP].git
2/ git remote add bitbucket ssh://git@bitbucket.org/[ACCOUNT]/[REPO].git
3/ git push bitbucket master
Run Code Online (Sandbox Code Playgroud)

运行第(3)行或使用SourceTree后,我仍然收到此错误

conq: repository access denied. access via a deployment key is read-only.
Run Code Online (Sandbox Code Playgroud)

首先,我不明白这个消息在实践中意味着什么.这太可惜了.

我确实创建了ssh密钥对并添加到heroku:

ssh-keygen -t rsa 
heroku keys:add ./id_rsa.pub 
Run Code Online (Sandbox Code Playgroud)

我还在BitBucket中的部署密钥部分添加了我的密钥.但我必须遗漏一些东西.这个问题并非出于懒惰,我一直在阅读各种文档,包括BitBuckets指南.但它仍然无法解决这个问题.

这篇文章与我可以将我的heroku git repo导入bitbuket有关吗?如何?

其他事实:

ssh -T hg@bitbucket.org
conq: authenticated via a deploy key.

You can use git or hg to connect to Bitbucket. Shell access is disabled.


$ ssh -v git@bitbucket.org
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /Users/joel/.ssh/config …
Run Code Online (Sandbox Code Playgroud)

git ssh bitbucket ssh-keys

299
推荐指数
8
解决办法
17万
查看次数

BitBucket - 以ZIP格式下载源代码

我知道我可以通过git clone命令获得项目,但有什么办法,如何从BitBucket.org通过Web界面下载项目?在最好的方式,我正在寻找一种方法来下载项目源作为ZIP压缩文件.

git zip download bitbucket git-clone

267
推荐指数
6
解决办法
22万
查看次数

登录时启动ssh-agent

我有一个站点作为远程Git repo从Bitbucket.com使用SSH别名拉.我可以在我的服务器上手动启动ssh-agent,但每次通过SSH登录时都必须这样做.

我手动启动ssh-agent:

eval ssh-agent $SHELL
Run Code Online (Sandbox Code Playgroud)

然后我添加代理:

ssh-add ~/.ssh/bitbucket_id
Run Code Online (Sandbox Code Playgroud)

然后它出现在我做的时候:

ssh-add -l
Run Code Online (Sandbox Code Playgroud)

我很高兴去.有没有办法自动化这个过程,所以我不必每次登录都这样做?服务器正在运行RedHat 6.2(Santiago).

git ssh redhat bitbucket ssh-agent

230
推荐指数
8
解决办法
21万
查看次数

Bitbucket git凭据如果与Google签约

我在bitbucket.org上有一个帐户,我是通过注册Google帐户创建的.现在我每次登录时都会点击"使用Google登录",这很好.

如何从git命令行访问我的repos?它要求我输入用户名和密码.我有一个用户名,但没有密码.我如何登录呢?

git bitbucket google-account

228
推荐指数
6
解决办法
7万
查看次数

如何在BitBucket中访问旧提交的完整源代码?

讨厌要问这对流量,但对我的生活,我不能找出或发现关于如何访问一个旧的源中的新位桶格式提交的文档.这甚至可能了吗?太沮丧了!

bitbucket

223
推荐指数
7
解决办法
9万
查看次数

使用dockerfile克隆私有git repo

我已经复制了这个代码,似乎是各种工作的dockerfiles,这是我的:

FROM ubuntu

MAINTAINER Luke Crooks "luke@pumalo.org"

# Update aptitude with new repo
RUN apt-get update

# Install software 
RUN apt-get install -y git python-virtualenv

# Make ssh dir
RUN mkdir /root/.ssh/

# Copy over private key, and set permissions
ADD id_rsa /root/.ssh/id_rsa
RUN chmod 700 /root/.ssh/id_rsa
RUN chown -R root:root /root/.ssh

# Create known_hosts
RUN touch /root/.ssh/known_hosts

# Remove host checking
RUN echo "Host bitbucket.org\n\tStrictHostKeyChecking no\n" >> /root/.ssh/config

# Clone the conf files into the docker container
RUN git …
Run Code Online (Sandbox Code Playgroud)

git bitbucket docker

219
推荐指数
7
解决办法
17万
查看次数

推送到 Bitbucket 时如何解决“致命:无效凭据”错误?

我的 Bitbucket 密码是正确的,因为我可以使用该密码轻松登录。当我尝试将项目或文件推送到 Bitbucket 时,它显示“无效凭据错误”

git push -u origin master

fatal: Invalid credentials
Password for 'https://username@bitbucket.org':
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/username/demo.git/'
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

git bitbucket

184
推荐指数
9
解决办法
14万
查看次数

Git on Bitbucket:即使在上传我的公共SSH密钥后,也总是要求输入密码

我按照说明~/.ssh/id_rsa.pub将我上传到Bitbucket的SSH密钥,但Git仍然要求我在每次操作时都输入密码(例如).我错过了什么?git pull

它是一个私有存储库(另一个人的私有存储库的分支),我克隆它像这样:

git clone git@bitbucket.org:Nicolas_Raoul/therepo.git
Run Code Online (Sandbox Code Playgroud)

这是我当地的.git/config:

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = https://Nicolas_Raoul@bitbucket.org/Nicolas_Raoul/therepo.git
[branch "master"]
        remote = origin
        merge = refs/heads/master
Run Code Online (Sandbox Code Playgroud)

在具有相同公钥的相同环境中,Gitub上的Git工作正常.
.sshrwx------,.ssh/id_rsa-rw-------,.ssh/id_rsa.pub-rw-r--r--

git ssh bitbucket

171
推荐指数
8
解决办法
10万
查看次数