I have TFS server with a GIT repository, and I want to execute a tool over the data in the repo and generate documentation. I tried everything step by step in my local machine, in the server, and with a build in TFS.
git clone https://ale:pass1@tfsserver.com/tfs/Prd_Development/Develop/_git/ACSF_APEX_API_Docu -b develop
Execute the tool that generates files and copies it to the repo path
git add
git commit -am "mycommit"
git push
In my local machine everything and directly in the server works properly but in a TFS build, when I want to push the changes I get this error
C:\Users\ale\Documents\ACSF_APEX_API_Docu>git push origin develop
Counting objects: 6241, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3420/3420), done.
Writing objects: 100% (6241/6241), 1.73 MiB | 2.76 MiB/s, done.
Total 6241 (delta 3732), reused 4640 (delta 2598)
error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
But I realized that if I only add a few files I can perform the push.
I have read many post with the same or similar issue but all the solutions are not working in my case:
postbuffer: I raised the buffer but still not working. Anyways it's working on my local machine, so I think the buffer is not the problem.
remote origin Also I checked that and the remote origin is set properly (also I clone the repository so it's Ok). Also in this post are talking about Windows Credentials. In my server are not set, so I also tried setting my credentials with no success.
Wrong user password Also checked, but discarded because I'm able to clone the repo
I can't understand what's going on because in my local machine works perfect but not in the TFS server
TY guys, any help will be appreciated.