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:

img_Powershell

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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like