bitbucket

How to maintain multiple bitbucket accounts with multiple ssh keys in the same system

随声附和 提交于 2019-11-29 20:43:26
I have multiple Git accounts one is my personal use and one is for company use. Both accounts source need to be activated from my laptop. Here I generated two ssh keys like id_rsa.pub,id_benwork_rsa.pub and I configured the config of git as Host sfsworkdid HostName bitbucket.org IdentityFile ~/.ssh/id_rsa Host workdid HostName bitbucket.org IdentityFile ~/.ssh/id_benwork_rsa So here is my problem: while pushing to any repo git asking the first ssh_key passphrase. Everytime I am changing the user.name in git config as git config user.name "mybitbucketusername" . So please tell me how to

How do I configure Git in Xcode to work with BitBucket

瘦欲@ 提交于 2019-11-29 20:21:48
I have a project which I have been on for ages which is not connected to any source code repository. I want to start using BitBucket now, however I am not sure how to go about it. I have created a project in BitBucket. Should I now clone and check out in Xcode or should I add a repository in xcode. Anyone have any idea? I have tried cloning using the URL from bitbucket but it just comes back with an error in Xcode As of 2017, xCode now automatically creates repositories for new projects. To push to a new BitBucket repo, go to 'Source Control' > 'Commit...' in xCode and make your first local

Bitbucket: Update a fork to merge changes of master repo?

↘锁芯ラ 提交于 2019-11-29 20:15:00
I am working with a bitbucket git repo I have read-only access to, so I created a fork to work on my features. Question: How do I update my fork to include changes made to the original repo made by the owner? On github, it seems one has to do the following, so I suspect it's a similar to this: $ git remote add upstream git://github.com/octocat/Spoon-Knife.git $ git fetch upstream $ git merge upstream/master I couldn't find any information on this in the Bitbucket Documentation for forking Martin Geisler Just like GitHub, you have to pull the commits down to your own machine, merge, and then

How do I get Jenkins to build on push to a BitBucket git repository?

ε祈祈猫儿з 提交于 2019-11-29 19:56:55
I have a git repository hosted on BitBucket, and have set up SSH authentication between the repository and my Jenkins server. I can build on Jenkins manually, but cannot get the Jenkins service on BitBucket to trigger builds. Jenkins configuration: - Project Name: [my_jenkins_job] - Build Triggers: --Trigger Builds Remotely: ---Token: [token] BitBucket configuration: - Endpoint: http://[my_jenkins_address]/job/[my_jenkins_job]/build (I've also tried build?token=[token]) - Project Name: [my_jenkins_job] - Module Name: [blank] - Token: [token] Visiting http:// {my_jenkins_address} /job/ {my

Bitbucket, Windows and “fatal: could not read Password for”

一曲冷凌霜 提交于 2019-11-29 19:56:25
I recently reinstalled Windows and I have a problem with downloading files from repository. I have installed GIT and Python, but when I am trying to download anything from Bitbucket I get the message: "fatal: could not read Password for: 'https://username@bitbucket.org': No such file or directory". What am I doing wrong? I had the same problem an hour or so ago. My issue was that I was trying to do a git clone but using the https url instead of the ssh one. If you go to your repository you can select ssh or https from the dropdown for the clone url. Hope that helps! jsarroyo I solved it

Clear git repository on Bitbucket?

本秂侑毒 提交于 2019-11-29 19:15:39
I'm just getting started with git, and started messing about with Bitbucket. However, I now want to use the repository I created, but without its initial history. Is there any way I can clear out or purge my repository so that I can start from scratch? I'm not too bothered about any of the content, so can I just delete the repository, then create a new one with the same name? No need to delete it. From your new local repo, simply: git push --force -u origin master That will replace the history of your BitBucket master branch by the new one you have done locally. Now, if you had pushed other

How to discard uncommitted changes in SourceTree?

醉酒当歌 提交于 2019-11-29 19:15:27
I'm new to the Git environment, and I'm using BitBucket with SourceTree on Mac. All I want to do now is to discard the changes since last commit. How should I do this? I haven't found anything like "discard changes", and directly pulling from the last commit doesn't seem to work. Solutions done with either the GUI or command line will be good. Thank you. I like to use git stash This stores all uncommitted changes in the stash . If you want to discard these changes later just git stash drop (or git stash pop to restore them). Though this is technically not the "proper" way to discard changes

How do I use Git Extensions with a Bitbucket repository?

為{幸葍}努か 提交于 2019-11-29 19:06:11
I have repository on both github.com and bitbucket.org, and I am very familiar using Git Extensions for all repository functions... But when I started using bitbucket.org repositories I have to use TortoiseHg SVN for it ... so I want to ask that is there a way I can use Git Extensions for Bitbucket repositories? ryanttb I haven't fully tested it, but these steps allowed me to clone a Bitbucket repository in Git Extensions. You can use PuTTY to generate a public/private SSH key, then add that key to Bitbucket. Run GitExtensions\PuTTY\puttygen.exe Click Generate Click Save public key (as a text

Create new repo on Bitbucket from Git Bash terminal?

笑着哭i 提交于 2019-11-29 19:04:41
Is it possible to create a new repository in Bitbucket by using command line Git? I have tried the following: git clone --bare https://username@bitbucket.org/username/new_project.git I get this message: Cloning into bare repository 'new_project.git'... fatal: https://username@bitbucket.org/username/new_project.git/info/refs not found: did you run git update-server-info on the server? It would be nice to do this without going to the web app. Marek You can use the Bitbucket REST API and cURL. For example: curl --user login:pass https://api.bitbucket.org/1.0/repositories/ \ --data name=REPO_NAME

Visual Studio 2013 and BitBucket

匆匆过客 提交于 2019-11-29 19:02:50
Visual Studio 2013 apparently has some nice slick Git integration. However, after an hour of head-scratching with absolutely nothing making even the slightest bit of sense, I've only been able to create a local repository and despite cloning a remote bitbucket repository I simply cannot find a way to publish to my remote repository. I've used TFS, Subversion, Perforce and just about everything else, but this is completely baffling, with no instructions and a completely un-intuitive user interface. Any ideas anyone ? John's statement that "you need Team Foundation Server" to work with BitBucket