shedvorti.blogg.se

Using sourcetree with private git repository
Using sourcetree with private git repository





  1. #USING SOURCETREE WITH PRIVATE GIT REPOSITORY FOR MAC#
  2. #USING SOURCETREE WITH PRIVATE GIT REPOSITORY INSTALL#

That may or may not be helpful, but I hope you can find a solution.

#USING SOURCETREE WITH PRIVATE GIT REPOSITORY FOR MAC#

Is it just a private repo you're wanting to access, or a private organization repo? If the latter, from that first link I think an organization owner has to grant access for the app (so I guess even if you have access as a GitHub user, you don't automatically get access when using the app). Sourcetree for Mac GitHub account permissions When adding a GitHub account to Sourcetree for Mac 3.0.1 (205), using OAuth and HTTPS, only public read permissions are requested: Consequently, no private repos are accessible and no write permissions are given. You may well have already looked here, but I found this on an initial google: However, I'd be surprised if it's not possible to access private repos at all this way. So it could well be that the solution for that is different. So the commonality of my problem with the original question here was "organization repos not appearing" rather than the private/public dimension of the question. But certainly the repos I was concerned with were public ones, just that they belonged to an organization.

using sourcetree with private git repository

I'm afraid it's a while since I did this, so I forget the details.

#USING SOURCETREE WITH PRIVATE GIT REPOSITORY INSTALL#

[This Medium article described the same problem and solution, except that they suggest deleting and re-creating the OAuth token, whereas I was able to just edit the settings on mine: not sure if is the same/similar problem to above, but I came across this question when searching for a solution, so thought it good to add my solution here after I worked out what my issue was.) Solution There are a few ways to clone a repository into SourceTree: Method 1 - Directly through the SourceTrees Main UI Steps: Click on the 'Clone/New' button. Install Sourcetree and add your Bitbucket account If you dont yet have Sourcetree, go to and click the Download free button. Add Remote Account First, click on Add an account. The first line creates a folder /.cfg which is a Git bare repository that will track our files. This is the simplest method to connect GitHub with SourceTree.

using sourcetree with private git repository

You authorize SourceTree to connect your GitHub account with OAuth. To fix, go to your GitHub settings -> Applications -> Authorized OAuth Apps -> Sourcetree ('SourcetreeForWindows' in my case): you can see the list of permissions granted, and underneath that Organization access, and the option to turn it on. Method 1: Connect with Remote Account via OAuth The first method is connecting GitHub with remote account. I discovered it was an issue with the default permissions in the OAuth settings by default, it doesn't give organization access. I tried starring the relevant one, but that didn't make a difference. I had a similar problem after adding my GitHub account to SourceTree, repos belonging to my organization weren't appearing in the 'Remote repositories' list. Public / Private Git repository (http and ssh access) Repository viewer and online file editing Repository search (Code and Issues) On the other hand, SourceTree provides the following key features: Full-powered DVCS Create, clone, commit, push, pull, merge, and more are all just a click away.







Using sourcetree with private git repository