Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How do I clone a git repository with extraHeader

PAT="mypat123"
REPO_URL=https://myorg@dev.azure.com/myorg/myrepo/_git/myrepo"
AUTH=$(echo -n ":$PAT" | openssl base64 | tr -d '
')
git -c http.$REPO_URL.extraheader="Authorization: Basic $AUTH" clone $REPO_URL --no-checkout --branch master
Comment

PREVIOUS NEXT
Code Example
Shell :: homebew fedora 
Shell :: linux aarch64 arm none eabi cross compiler ubuntu 
Shell :: command list sort files by size 
Shell :: How to list unit files with systemctl command specifying a unit type 
Shell :: bash linux no ouput from command 
Shell :: unintsall from ubuntu 
Shell :: salesforce github format 
Shell :: remove file kali 
Shell :: Getting Uptime and Load Averages 
Shell :: Git merge submodule into parent tree and preserving commit history 
Shell :: how to fix a read only hard drive in linux 
Shell :: restart docker cmd 
Shell :: change drive in linux terminal windows subsystem 
Shell :: linux copy file 
Shell :: download file from terminal linux 
Shell :: bash boolean 
Shell :: install openjdk debian 
Shell :: Filter in terminal 
Shell :: bcmatch install 
Shell :: sol-merger command 
Shell :: git: Download specific commit from git repository : remote 
Shell :: iperf test example 
Shell :: How to install very_good_cli in flutter 
Shell :: locate path software 
Shell :: delete fg linux 
Shell :: bash add element to front of array 
Shell :: copy modified git branch files to directory 
Shell :: docker compose kong 
Shell :: quit ionic 
Shell :: sanity coding with basir 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =