This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 162208 [details] screenshot netbeans keeps asking me for credentials on all my git repositories while sourcetree just works and is able to figure out stuff from my user home content I suppose. I don't want to configure every single repository within netbeans. Things should just work as well. see attached picture for the git repository url format
(In reply to Milos Kleint from comment #0) > netbeans keeps asking me for credentials on all my git repositories Just out of nothing? Or does it ask on an explicit user action (git fetch/push etc.)? > I don't want to configure every single repository within netbeans. Things > should just work as well. What's exactly the issue here? Do you expect the Git support guesses your credentials for the repository and connect automatically from a system-wide setup?
(In reply to Ondrej Vrabec from comment #1) > (In reply to Milos Kleint from comment #0) > > netbeans keeps asking me for credentials on all my git repositories > Just out of nothing? Or does it ask on an explicit user action (git > fetch/push etc.)? on pull/fecth > > I don't want to configure every single repository within netbeans. Things > > should just work as well. > What's exactly the issue here? Do you expect the Git support guesses your > credentials for the repository and connect automatically from a system-wide > setup? yes. I expect it to pick up my system wide settings (git pull on cmd line works). I'm on macosx btw if that makes ay difference.
> yes. I expect it to pick up my system wide settings (git pull on cmd line works). Then how does CLI git know your credentials? Do you set the password in the URL in .git/config? Or do you use ssh keys to access the repo (if so, then how do you tell Git what .ssh/id_* belongs to the URL and where to get the passphrase unlocking the key file)? I am just asking to see how to tune the authentication on our side and how to make it work with your environment - I very much doubt I can make it work for all cases, so better to start with yours.
My .ssh has just one key. drwx------ 6 mkleint staff 204 24 Sep 17:49 . drwxr-xr-x 188 mkleint staff 6392 23 Sep 08:59 .. -rwxr--r-- 1 mkleint staff 2451 6 Nov 2015 config -r-------- 1 mkleint staff 1766 30 Jun 2014 id_rsa -rw-r--r-- 1 mkleint staff 397 30 Jun 2014 id_rsa.pub -rw-r--r-- 1 mkleint staff 3072 26 Sep 10:54 known_hosts my gitconfig looks like this: [user] name = Milos Kleint email = mkleint@atlassian.com [core] excludesfile = /Users/mkleint/.gitignore_global [difftool "sourcetree"] cmd = opendiff \"$LOCAL\" \"$REMOTE\" path = [mergetool "sourcetree"] cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" trustExitCode = true .git/config in example repository (where cmd like git pull works OOTB [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = false [remote "origin"] url = ssh://git@stash.atlassian.com:7997/buildeng/bamboo-admin-warning-plugin.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master
There should be something related in .ssh/config as well, can you please share its content?