Git Product home page Git Product logo

Comments (1)

RiverLi avatar RiverLi commented on May 27, 2024

This is resolved using different way.
A microsoft support engineer helped me to find out the root cause. The root cause is my organization set a device rule in our Azure, the device rule does not allow Linux platform. We did not have permission to change the device rule of our organization(we are not subscription admin of our company azure account).
It is resolved by generating a credential in VSTS. In the page of VSTS code repository, click "Clone", a pop up came up, and then click "Generate Git credentials". It will generate a set of user name and password for you. Copy and paste it. Save it to a file long time usage. Please see the screen shot.
image

For example, the user name and password looks like:
[email protected]
jreur8re84mdj3k3mdlmsslkrjlkesflk434l5l43j5lk435l43v88
The 1st row is user name. Usually it is your email address used to access VSTS. The 2nd row is password.
When use git-credential-manager, a directory structure is created,
~/.VSTeamServicesAuthPlugin
If the user is root, it should be /root/.VSTeamServicesAuthPlugin
A file named insecureStore.xml in the folder,
edit and paste the password you got above to the file.
like this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?> <insecureStore> <Tokens/> <Credentials> <entry> <key>git:https://xxxxxx.visualstudio.com</key> <value> <Password>jreur8re84mdj3k3mdlmsslkrjlkesflk434l5l43j5lk435l43v88</Password> <Username>Personal Access Token</Username> </value> </entry> </Credentials> </insecureStore>

For setting up git-credential-manager, please follow this link: https://github.com/microsoft/Git-Credential-Manager-for-Mac-and-Linux/blob/master/Install.md.
What I used is the git-credential-manager.jar version. It seemed to be simple for me. It just requires Java, and a couple of commands to run.

After all these above, your git on Centos Linux should be working properly. You should be able to do all the git operations with your credential genrated from VSTS.

from git-credential-manager-for-mac-and-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.