git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Need support with git credential storage

From
CBCharles Bélanger <cbelanger@addenergie.ca>
Date
Jan 27, 2016, 21:49 UTC
Message-ID
<CY1PR0701MB1836FFF6CEAC69DFB5E86DACB7D90@CY1PR0701MB1836.namprd07.prod.outlook.com>
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
Next: Jeff King
Message 1 of 2 in “Need support with git credential storage”
  1. Charles BélangerJan 27, 2016
  2. Jeff KingJan 27, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.