3

I've followed the tutorials on how to make Github for Windows work with Bitbucket,

And in some point where you try to login I get this strange bug or anything.

Here's the image:

Ok not possible

The problem is I can't click the login button and I have no idea why.
I'm stuck and can't proceed on the tutorial.

3 Answers3

2

I had this issue previously however newer versions appear to have fixed this. If you have further issues just pull the repo down using Git Shell initially and your issues should be fixed.

  1. Open Git Shell (from start menu)
  2. cd ~/Documents/GitHub to get into your home directory
  3. git clone http://therepo.com/the/repo.git
  4. Open GitHub for Windows, click the Local Repositories section
  5. Open the GitHub folder in your documents folder
  6. Drag the repo folder into GitHub for Windows
  7. All should work fine now
bbodenmiller
  • 3,101
  • 5
  • 34
  • 50
1

That login is for using bitbucket with https url (and I did manage to get it working at the time).

If the https address doesn't work, SourceTree can offer an alternative GUI.


But as shown in this tutorial (or even this one), you could also use GitHub for Windows with ssh addresses.

Make a backup of the ‘github_rsa.pub’ SSH public key file.
Copy the contents of C:\Users\{user}\.ssh\id_rsa.pub to this file and save it.

  • Visit the GitHub site and create an account if you don’t already have one: https://github.com/settings/ssh
  • Account > Edit your profile > SSH keys
  • Add a new key with the label: “Default Public Key (nopass)
  • Copy the public key (C:\Users\{user}.ssh\id_rsa.pub) to GitHub

The one tutorial I have found for using BitBucket repos with https url is this one (from Jeremy):

  • Install GitHub for Windows (GH4W), open program
  • Set your username/email globally to get the right avatar in non-github projects
git config —global user.name “FIRST_NAME LAST_NAME”
git config —global user.email “MY_NAME@example.com”
  • Add new repository (either preexisting or blank directory)
  • In the repository, click the "tools" > "settings" link at the top
  • Go to BitBucket, find your clone link -- choose "HTTPS" option
  • Back in GH4W, in the "primary remote (origin)" box enter the link you got in step #4
  • Update the settings
  • Back in the repo view of GH4W, click the "publish" link at the top
  • Wait while it spins, then confirm it's there in the remote.
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Hi thanks for the help, I've followed your tutorial and also step 4 which is important. I've added my publc SSH key on my github account. And when I click on publish it gives me an error of 'failed to publish this branch: please make sure the repository exist and that you have permissions to write to it' – David Mandeeli Apr 30 '13 at 06:14
  • @DavidMandeeli by my tutorial, you mean http://stackoverflow.com/questions/13664949/use-github-for-windows-for-both-bitbucket-and-github/13665100#13665100? – VonC Apr 30 '13 at 06:15
  • Yea, sorry I can actually work on the Git bash + Bitbucket. But I really like the features of GH4W. I'm still trying to figure it out how to make it work. Yes that's the tutorial I followed. I was stuck at the Login part because I can't click login. – David Mandeeli Apr 30 '13 at 06:21
  • I got the https code and inserted it on the 'primary remote' option in GH4W, then I tried to click 'publish' and gave me this error. 'failed to publish this branch: please make sure the repository exist and that you have permissions to write to it' – David Mandeeli Apr 30 '13 at 06:23
  • @DavidMandeeli in that repo (you are trying to publish), did you set the right `user.name` and `user.email`? – VonC Apr 30 '13 at 06:25
  • in --global configs?. Yes I did set it. Entered my user.name = bitbucket acc & user.email = email i used in bitbucket – David Mandeeli Apr 30 '13 at 06:29
  • @DavidMandeeli yes, global or local. Did you use the same url as I did: `https://user@bitbucket.org/user/repo` (with the user login included in the url)? – VonC Apr 30 '13 at 06:30
  • Hi, I tried to use the git bash. Cause I'm working on a team project right now i'm still new to this and we want the project to be private so we used bitbucket instead. My other mate created the project > i cloned it (successful on git bash). Tried to commmit changes and once I 'git push origin master' It returned a Permission denied (public key) could not read from remote repos – David Mandeeli Apr 30 '13 at 06:31
  • @DavidMandeeli Did you use the same url as I did: `https://user@bitbucket.org/user/repo` (with the user login included in the url)? – VonC Apr 30 '13 at 06:32
  • @DavidMandeeli what is exactly the url you are using for your remote `origin`? – VonC Apr 30 '13 at 06:33
  • Hi yes I did put that one and when I update, it asks for a login. And that I can;t click the login button that's why I can;t proceed with the tutorial you made. – David Mandeeli Apr 30 '13 at 06:34
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/29165/discussion-between-david-mandeeli-and-vonc) – David Mandeeli Apr 30 '13 at 06:34
  • @DavidMandeeli (chat is blocked at work) First, what `git remote -v` returns when executed within your local clone. Second, did your colleague declare your account in a team (http://blog.bitbucket.org/2012/05/30/bitbucket-teams/) or added you (your account or your public ssh key) as a collaborator for the private repo he created? – VonC Apr 30 '13 at 06:39
  • yes we have, and the project is a repository in the Team account. This is the result of the git remote -v `origin git clone git@bitbucket.org:davidcs/test.git (fetch)` `origin git clone git@bitbucket.org:davidcs/test.git (push)` – David Mandeeli Apr 30 '13 at 06:46
  • Ok now I can psuh changes using my account to the team repository. I think I was just in the wrong directory. But will try it on GH4W now. – David Mandeeli Apr 30 '13 at 06:54
  • @DavidMandeeli so you are using an ssh address! But my tutorial was for an https address. – VonC Apr 30 '13 at 06:56
  • If i used "https://davidcs@bitbucket.org/myteam/myproject.git" it asks me for a login. That's why I can't commit and publish changes using GH4W. But I can on git bash. : / – David Mandeeli Apr 30 '13 at 07:05
  • Try using `https://davidcs@bitbucket.org/myteam/myproject` as a remote url (no `.git` at the end) in GH4W. – VonC Apr 30 '13 at 07:08
  • it's still asking me for a login though :( – David Mandeeli Apr 30 '13 at 07:15
  • @DavidMandeeli it will always ask you for a login, with https address. But can you click on 'Ok'? – VonC Apr 30 '13 at 07:16
  • No, it's really weird cause I can;t click it. – David Mandeeli Apr 30 '13 at 07:17
  • I can login on git bash without any problems, I've reinstalled my GH4W too. – David Mandeeli Apr 30 '13 at 07:18
  • @DavidMandeeli just to be sure, could you launch your GH4W with elevated privileges ("As Administrator"), in case this is a weird right issue? – VonC Apr 30 '13 at 07:21
  • I'm using windows 8, and tried running it as an Admin on the "windows 8 metro view" but nothing shows up. I think because this is not a .exe application. It's .appref-ms as shown in the file. Hmm if I right click it no "run as" option shows. – David Mandeeli Apr 30 '13 at 07:30
  • Hi my sourcetree problem awhile ago was fixed during this process. I'll proceed on using SourceTree. I'll pass on GH4W. Thanks @VonC. Really appreciate your help. – David Mandeeli Apr 30 '13 at 07:41
  • @DavidMandeeli You are welcome. I have added a reference to SourceTree in the answer for more visibility. – VonC Apr 30 '13 at 07:43
1

i recently had the same issue with GH4W. It turned out that i was logged in to GitHub while i tried to connect to a Beanstalk repository. When i logged out at GitHub the Ok button became clickable and i could successfully connect to Beanstalk.

Matthias
  • 11
  • 2