Answers for "cloning a repository"

9

git clone repo with name

git clone https://github.com/foo/repo_name.git new_directory_name
Posted by: Guest on April-07-2020
0

How do I clone a git repository with extraHeader

PAT="mypat123"
REPO_URL=https://[email protected]/myorg/myrepo/_git/myrepo"
AUTH=$(echo -n ":$PAT" | openssl base64 | tr -d 'n')
git -c http.$REPO_URL.extraheader="Authorization: Basic $AUTH" clone $REPO_URL --no-checkout --branch master
Posted by: Guest on March-10-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language