I'm trying git clone and push in a docker file. I have succeed to clone git repository with a Personal Access token like mentioned in this link Cannot clone git from Azure DevOps using PAT.
But I could not achieve make git push with using PAT to our company repositories. The below code working for clone git config --global http.extraheader "AUTHORIZATION: Basic VXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX3Xx" git clone --depth 1 http://tfsXXX/tfs/XXXXX/XXXXGIT/_git/XXXXXXX
Could Someone help me How I can achive git push with PAT?