I'm using amazon linux 2 as the OS image. I want to connect to my AWS CodeCommit repository using HTTPS protocol with my default credentials.
Connection from a container on VSCode Remote-Containers to AWS CodeCommit repository fails due to default settings.
When connect to CodeCommit repository I use ~/.gitconfig file with below setting.
[credential] helper = !aws codecommit credential-helper $@
But VSCode have default setting on '/usr/etc/gitconfig'.
[credential] helper = "!f() { command -v code >/dev/null 2>&1 && code --gitCredential $*; }; f"
So my config is ignored.
If I remove the file '/usr/etc/gitconfig' on my container, I can connect to my CodeCommit repository.
But when I reload the VSCode window, the file is restored every time.
I wrote the command on the file .devcontainer/devcontainer.json
"postCreateCommand": "rm /usr/etc/gitconfig"
It didn’t seem to work.
I want to ignore the default setting or overwrite it by my code permanently.