bitbucket

Mercurial error: repository is unrelated

陌路散爱 提交于 2019-12-18 13:53:20
问题 I've just started with Mercurial, I have a 'central' repository on Bitbucket which I cloned onto one machine and made changes and committed and pushed. I then cloned from Bitbucket to another machine committed and pushed which was fine. I then came back to the first machine, made changes committed and attempted to push, but got the error message. What am I doing wrong? Should I have pulled first? How can I resolve the error and push? Any help is appreciated! Darren. 回答1: A Mercurial

What is the public URL for the Github public keys

自古美人都是妖i 提交于 2019-12-18 10:22:58
问题 I heard that there was a public URL for all users on github where you can access their public keys or they can supply that URL of all their public keys. Is this true? If so what is that URL. Does it exist for bitbucket as well? 回答1: You can get with: curl https://github.com/<username>.keys Replace <username> with the actual username of the GitHub user. This is useful when you set login permission to other servers. Just save its output into ~/.ssh/authorized_keys . To append it to the end from

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

萝らか妹 提交于 2019-12-18 10:19:26
问题 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

How do I configure Git in Xcode to work with BitBucket

丶灬走出姿态 提交于 2019-12-18 10:13:51
问题 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 回答1: As of 2017, xCode now automatically creates repositories for new projects.

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

做~自己de王妃 提交于 2019-12-18 10:08:51
问题 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? 回答1: 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

How to discard uncommitted changes in SourceTree?

丶灬走出姿态 提交于 2019-12-18 10:01:05
问题 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. 回答1: 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

Git on Bitbucket: Always asked for password, even after uploading my public SSH key

天涯浪子 提交于 2019-12-18 10:00:31
问题 I uploaded my ~/.ssh/id_rsa.pub to Bitbucket's SSH keys as explained, but Git still asks me for my password at every operation (such as git pull ). Did I miss something? It is a private repository (fork of another person's private repository) and I cloned it like this: git clone git@bitbucket.org:Nicolas_Raoul/therepo.git Here is my local .git/config : [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] fetch = +refs/heads/*:refs/remotes

Delete branches in Bitbucket

独自空忆成欢 提交于 2019-12-18 09:58:28
问题 I've created lots of branches in one of our repositories. Those branches are for testing before it will be pulled to the master. Now I see lots of them on the list and they we will never use it again. How to delete those branches directly to Bitbucket? 回答1: If the branches are only local, you can use -d if the branch has been merged, like git branch -d branch-name If the branch contains code you never plan on merging, use -D instead. If the branch is in the upstream repo (on Bitbucket) you

Delete branches in Bitbucket

拟墨画扇 提交于 2019-12-18 09:58:04
问题 I've created lots of branches in one of our repositories. Those branches are for testing before it will be pulled to the master. Now I see lots of them on the list and they we will never use it again. How to delete those branches directly to Bitbucket? 回答1: If the branches are only local, you can use -d if the branch has been merged, like git branch -d branch-name If the branch contains code you never plan on merging, use -D instead. If the branch is in the upstream repo (on Bitbucket) you

Make commit message appear as comment in bitbucket

亡梦爱人 提交于 2019-12-18 08:58:23
问题 Is there a way to make bitbucket show commit messages as part of comments/activity related to a specific issue, whenever it's been marked-up in said message; the same way github does? Thanks. 回答1: Issues, pull requests, users and commit hashes can be linked in BitBucket issues and commit messages. Issues can be closed automatically by including something like resolves #123. Commits referencing issue 123 will generate a cross-reference in the issue. This relies on the issues hook to be enabled