git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Need support with git credential storage
@ 2016-01-27 21:49 Charles Bélanger
  2016-01-27 22:28 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Charles Bélanger @ 2016-01-27 21:49 UTC (permalink / raw)
  To: git@vger.kernel.org

Hello Git Community,

I'm working at AddEnergie at Quebec city in Canada and I'm currently working on making a Build Server in a Virtual Machine running Ubuntu.
We are using git for our source code and I'm the first one here that need to use git store credentials for an Automated Build Server that would run overnight.

I'm wondering if you could provide me support about it because I'm having issue making it works.
The clue I have right now about my git store credential issue is when I'm doing a git clone of my project repo, I'm having following errors:

Here's the git clone command launch by a .sh script file called from ~/.profile:
git clone https://MyUserName@bitbucket.org/CompanyName/ProjectName.git ~/Projects/SubFolderName/ProjectName

Here's the error from bash .profile:
Fatal: unable to access 'https://MyUserName@bitbucket.org/CompanyName/ProjectName.git/':
Could not resolve host: bitbucket.org

I followed the excellent Web page here:
https://git-scm.com/book/be/v2/Git-Tools-Credential-Storage

Here's what I use as commands:
git credential-store --file ~/git.store store
protocol=https
host=bitbucket.org/CompanyName/ProjectName.git
username=MyUserName
password=MyPassword
(type enter on a blank line to exit)

git credential-store --file ~/git.store get
protocol=https
host=bitbucket.org/CompanyName/ProjectName.git
(type enter on a blank line to exit)


Here's what the ~/git.store file looks like:
        https://MyUserName:MyPassword@bitbucket.org%2fCompanyName%2fProjectName.git

I tried changing the %2f by / inside the git.store file and also tried // but it's still showing the same fatal error.
Perhaps I don't use the host=  property correctly.

May I ask you helping me with this ?

Best Regards,

Charles Belanger

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-27 22:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-27 21:49 Need support with git credential storage Charles Bélanger
2016-01-27 22:28 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).