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://myusern...@bitbucket.org/CompanyName/ProjectName.git 
~/Projects/SubFolderName/ProjectName

Here's the error from bash .profile:
Fatal: unable to access 
'https://myusern...@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:mypassw...@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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to