[credential]
helper = osxkeychain
I do not have a credential-osxkeychain. Instead its git-credential-osxkeychain. in the /usr/local/bin directory. This I believe was installed by the very latest git mac os x installer.
I do not see anything in the log.txt file that relates to the shell environment itself. Here is the log.txt that is generated around the command that is failing.
30261781 (2016-05-17 07:23:23,987) [WorkerThread-1] INFO q.exec - Executing #32 [/Sites/home/qcubed/vendor/qcubed/framework] /usr/local/git/bin/git push --porcelain --progress --recurse-submodules=check github refs/heads/feature-AjaxFiles:refs/heads/feature-AjaxFiles
30262344 (2016-05-17 07:23:24,550) [QThreadPoolThread-6 (stderr-#32 /usr/local/git/bin/git push --porcelain --progress --recurse-submodules=check github refs/heads/feat)] INFO smartgit.command.logging - stderr: git: 'credential-osxkeychain' is not a git command. See 'git --help'.
30262352 (2016-05-17 07:23:24,558) [QThreadPoolThread-6 (stderr-#32 /usr/local/git/bin/git push --porcelain --progress --recurse-submodules=check github refs/heads/feat)] INFO smartgit.command.logging - stderr: git: 'credential-osxkeychain' is not a git command. See 'git --help'.
30262474 (2016-05-17 07:23:24,680) [QThreadPoolThread-2 (smartgit.aVX)] INFO smartgit.server - Received command 'get-http-credentials'
30262475 (2016-05-17 07:23:24,681) [QThreadPoolThread-2 (smartgit.aVX)] INFO smartgit.server - params: id=1554002987743444725;remoteId=https://github.com/spekary/qcubed.git;username=<unset>
30262476 (2016-05-17 07:23:24,682) [QThreadPoolThread-2 (smartgit.aVX)] INFO smartgit.http - Authenticating at https://github.com/spekary/qcubed.git using auto-generated credentials
30262604 (2016-05-17 07:23:24,810) [QThreadPoolThread-2 (smartgit.aVX)] INFO smartgit.server - Received command 'get-http-credentials'
30262604 (2016-05-17 07:23:24,810) [QThreadPoolThread-2 (smartgit.aVX)] INFO smartgit.server - params: id=1554002987743444725;remoteId=https://github.com/spekary/qcubed.git;username=<unset>
30262605 (2016-05-17 07:23:24,811) [QThreadPoolThread-2 (smartgit.aVX)] INFO smartgit.http - Authenticating at https://github.com/spekary/qcubed.git using auto-generated credentials
30263113 (2016-05-17 07:23:25,319) [QThreadPoolThread-6 (stderr-#32 /usr/local/git/bin/git push --porcelain --progress --recurse-submodules=check github refs/heads/feat)] INFO smartgit.command.logging - stderr: git: 'credential-osxkeychain' is not a git command. See 'git --help'.
30263120 (2016-05-17 07:23:25,326) [QThreadPoolThread-6 (stderr-#32 /usr/local/git/bin/git push --porcelain --progress --recurse-submodules=check github refs/heads/feat)] INFO smartgit.command.logging - stderr: git: 'credential-osxkeychain' is not a git command. See 'git --help'.
30263120 (2016-05-17 07:23:25,326) [QThreadPoolThread-6 (stderr-#32 /usr/local/git/bin/git push --porcelain --progress --recurse-submodules=check github refs/heads/feat)] INFO smartgit.command.logging - stderr: remote: Anonymous access to spekary/qcubed.git denied.
30263121 (2016-05-17 07:23:25,327) [QThreadPoolThread-6 (stderr-#32 /usr/local/git/bin/git push --porcelain --progress --recurse-submodules=check github refs/heads/feat)] INFO smartgit.command.logging - stderr: fatal: Authentication failed for 'https://github.com/spekary/qcubed.git/'
30263122 (2016-05-17 07:23:25,328) [WorkerThread-1] ERROR smartgit.command - Authentication failed for 'https://github.com/spekary/qcubed.git/'
smartgit.ff: Authentication failed for 'https://github.com/spekary/qcubed.git/'
> I do not have a credential-osxkeychain. Instead its git-credential-osxkeychain.
I see ... I think that's the expected name.
You are running SmartGit with its bundled Git, right? So I think all of the following options should work:
(1) switch SmartGit to your system Git in the Preferences, section Executables
(2) create a symlink from SmartGit's bundled Git to git-credential-osxkeychain; something like the following should work:
ln -s /usr/local/bin/git-credential-osxkeychain /Applications/SmartGit.app/Contents/Resources/git/bin/git-credential-osxkeychain
(3) Get rid of the [credential]-section from your .gitconfig