bitbucket

hg “stream ended unexpectedly” error on cloneing

£可爱£侵袭症+ 提交于 2020-01-01 09:02:45
问题 I'm trying to clone a bit repository from bitbucket via hg but I keep getting this error: abort: stream ended unexpectedly (got 404093 bytes, expected 8706452) mac:~ user$ hg clone https://user2@bitbucket.org/mine/test http authorization required realm: Bitbucket.org HTTP user: user2 password: destination directory: test requesting all changes adding changesets adding manifests adding file changes transaction abort! rollback completed abort: stream ended unexpectedly (got 404093 bytes,

How to achieve 'pre-checkout' hook in Git/bitbucket?

爱⌒轻易说出口 提交于 2020-01-01 08:27:15
问题 Result of lots of searching on net is that pre-checkout hook in git is not implemented yet. The reason can be: There is no practical use. I do have a case It can be achieved by any other means. Please tell me how? Its too difficult to implement. I don't think this is a valid reason Here my problem is: I have implemented the pre-commit , post-merge & post-checkout hooks for maintaining the database backup different for each branch. Scenario : Now when I commit the backup of database is saved

Jenkins git submodule update fails

梦想与她 提交于 2020-01-01 08:22:11
问题 I have a git repo which has one submodule. Both belong to a team on BitBucket. My jenkins machine is a AWS windows server with the git plugin. I am using SSH keys for authentication. I have three jenkins jobs. One clones the main repo. This is successful. One clones the second repo on its own (the repo which will be used as a submodule). This is also successful. In my third build job I tell jenkins to recursively update the submodules. This fails and says public-key error. How can this be the

Reading the BitBucket API with Authentication for a Private Repository in C#.net

做~自己de王妃 提交于 2020-01-01 05:01:06
问题 I've been trying for a few days to get the BitBucket API to work for me, but have come to a grinding halt when it comes to getting it to work for a private repository with authentication (with the issues set as private, when they're set to public and no authentication is needed it all works fine) Code sample is as follows: static void Main(string[] args) { WebProxy prox = new WebProxy("ProxyGoesHere"); prox.Credentials = CredentialCache.DefaultNetworkCredentials; var address = "repositories

Bitbucket入门手册

大兔子大兔子 提交于 2019-12-31 18:33:13
老大要我去调研一下有什么好用的免费软件版本管理工具,有利于小团队开发的。我第一个想到的就是git,经常在git下东西,听说它的代码仓库好用,于是就注册了一个github的账号,创建仓库的时候才发现只能创建开源项目,私有仓库要收费,于是就在网站上问了很多人,发现很多人都是用bitbucket管理项目,它提供5人无限制的私有仓库,这个太诱惑了,所以花了一下午整了一下,尝试了一下,发现确实好用。老大说要整理一个简单易懂,没有学习成本的文档,我就写了这个,手把手操作指南 Bitbucket使用说明: 使用者请直接看第一步,第二步和egit使用说明, 需要自己创建仓库的可以看三四步 第一步:新用户注册 bitbucket.org 然后按步骤创建一个教程代码库 可以选择下载SourceTree 和git SourceTree是一个客户端,图形界面,挺方便的 主界面有个教程,挺详细的,可以看看 第二步:设置中文 点右上角的小人图标,然后点击“Manage account” 在Account settings 里最下面有个选项,Language,改成Chinese 第三步:创建仓库 创建完可以用SourceTree复制代码进去,点击用SourceTree克隆 会弹出这个窗口,可以更改目标路径(必须是空文件夹,不存在的最好) 里面现在是空的,点击在文件管理器中打开 把代码复制到这个文件夹

How to undo a merge on Bitbucket?

亡梦爱人 提交于 2019-12-31 08:34:11
问题 I've created a merge (into the 'master' branch) that's now on a Bitbucket repo. Long story short: I need to undo that merge. I know that you can do this at the Github site itself, but Bitbucket doesn't have that feature. I'm not clear on how to do this with Git without causing a mess. 回答1: You need to first clone the repository on your local system (you can get the repo URL in SSH or HTTPS format from the "Overview" page of the repository in Bitbucket): git clone git@bitbucket.org:my/repo.git

Android Studio - Push failed: fatal: Could not read from remote repository

☆樱花仙子☆ 提交于 2019-12-31 08:33:20
问题 I have a git project at Android Studio and a remote at BitBucket and I changed it to use SSH instead of HTTPS. I can make everything work using Atlassian's SourceTree, but in Android Studio every time I try to push the project it says Push failed: fatal: Could not read from remote repository. Does anyone have a clue about what could be happening? 回答1: This is probably an Intellij problem. Your key are managed natively by ssh, and Intellij has it's own ssh program. Go to the settings, search

How to mark an issue as resolved from the commit log?

寵の児 提交于 2019-12-31 08:10:49
问题 I noted that in BitBucket when your commit log contains a number like #12 this number is linked to the bug number 12. I found this feature interesting, and I wonder if there is any keyword that would allow me to mark the issue as resolved from the commit log instead of going to the web interface each time. If BitBucket doesn't do it, could you point a system that does? 回答1: Bitbucket already supports marking issues on commit using the Issues service. The issues service scans commit messages

Pull specific branch from git

人盡茶涼 提交于 2019-12-31 08:05:10
问题 I have a repo in bitbucket , and i am using git . So my branches are master develop_one develop_two When i use git clone git@bitbucket.org:project/project.git , i am getting only the master branch code, but i need to clone/pull only develop_one branch, so how to clone/pull only develop_one branch code ? Note: The other branches(develop_one, develop_two) are not merged in to master, and dont want to merge until the functionality has been completed actually, so want to get/clone/pull only a

How to structure more than one function on git for automated deploy on Google Cloud Functions?

懵懂的女人 提交于 2019-12-31 04:06:27
问题 I'm start using the Google Cloud Functions and I've see that has an option to make an automated deploy from the bitbucket. I have multiple functions to deploy, should I have one repo per functions or can I have one repo but divided by directories or something else? that is what I'm talking about: Deploying from Source Control Thanks. 回答1: You can have multiple functions in a single repo. A common structure would be as follows: . ├── common │ ├── module1.py │ └── module2.py ├── main.py └──