Skip to content

Instantly share code, notes, and snippets.

@strausmann
Forked from mattbell87/azureap-git.md
Created October 29, 2021 13:39
Show Gist options
  • Select an option

  • Save strausmann/c50eb67dbb658b3865768a47df964bc4 to your computer and use it in GitHub Desktop.

Select an option

Save strausmann/c50eb67dbb658b3865768a47df964bc4 to your computer and use it in GitHub Desktop.
Use GIT behind Azure Application Proxy

1. Download the cookies.txt extenstion for chrome

Download here on the chrome web store

2. Log in

Open a browser and log in to your GIT server (eg GitLab). This should give you an Azure login page, afterwards you'll be logged in to your server.

3. Download your cookies

Click the cookies.txt icon in your browser, then choose to download the cookies for the tab that has your GIT server.

4. Tell GIT about the login details

Open a terminal and type:

git config --global http.cookieFile ~/path/to/cookies.txt 

5. You're done

You should now be able to clone/push/pull. You may need to repeat steps 2 and 3 when your session expires (just overwrite the old cookies.txt).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment