Unable to Run Git Command (With ~/. Bashrc Modified)

Unable to Run Git Command (With ~/. Bashrc Modified)

I'm using powershell in Windows to clone a repository to an on-premise Ubuntu GPU environment (specifically, NVIDIA-DGX). After successfully ssh, I followed instructions and added the following codes at the end part of ~/.bashrc:

# Enable https clone in dgx
export https_proxy=
export http_proxy= 

After that I ran the following commands:

git config --global credential.helper cache`
git config --global credential.helper 'cache --timeout=2592000'

# Initialize git lfs
git lfs install

# Clone respository
git clone <HTTPS_GIT_URL>

However, the expected prompt asking for username and password didn't show and powershell simply didn't react, the situation is like this:

Is it because the http_proxy filed should not be null? Or the git commands are wrong? Thx.

6

1 Answer

Thanks steeldriver for pointing out the problem of backtick on the comment.

Yes, after removing the line:

git config --global credential.helper cache`

The problem is solved.

Actually, I have found that this line is even not necessary given I already have:

git config --global credential.helper 'cache --timeout=2592000'

Note: Answer provided by OP on question

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.