I made a new blank TFS git project and tried to clone it in a new folder on my desktop using TortoiseGit and msysgit. It always fails saying 'Authentication failed'.
I typed:
"git clone https://saratoga.visualstudio.com/DefaultCollection/_git/Git%20Test."
When prompted for my username I entered my Windows account email address (e.g. bob#example.org).
It then asked for my password for
"https://test#saratoga.visualstudio.com"
i entered the password. However, I am unable to connect to the tfs service, message appear that authentication failed in tortoise git.
Alternative Authentication Credentials in TFS provides a solution, use the following instructions:
Click on your name in the upper right of screen.
Click on My Profile.
Click on the Credentials tab.
Setup an alternate username that doesn't include the # character.
Now when you connect to the remote repo via TortoiseGit, you can use the alternate credentials and those new credentials should work.
Related
I am using Visual Studio 2019 with BitBucket Extensions installed.
For some reason I can no longer log into BitBucket from Visual Studio.
It's giving me an "Invalid Credentials" error.
I am using the same username (email address) and password that I use to log into the BitBucket website.
I tried uninstalling/reinstalling the BitBucket extension.
I tried changing my password.
For some reason I can no longer log into BitBucket to push/pull from my remote branch.
This has been working fine for 6 months. I am not sure what has changed.
Given that your login has been working fine for 6 months, I would say that creating a new App password on BitBucket will fix the Invalid Credentials, it probably expired.
Other approach would be to put your username without the domain, for example
arson#enterprises.org would be just arson.
I created Git Hub account and clone using SSH
I went to Create Git Repositories. I chose both project folders POD and SFITNESS. Then xCode created the following:
Then I right click on SFITNESS and ADD EXISTING REMOTE which I log in to GitHub to provide the link, everything works fine.
When I went to commit, I choose the SFTNESS folder and commit and at the bottom it allows me to Push to remote which I choose the remote at step 3.
Then it will prompt me for the Username and Password and I can never get the authentication correct. The Username and password is it for Github? I can never get the authentication correct?
Now, at the commit window I have lost my SFITNESS folder, how do I commit again? Is it push now?
Need to Add SSH following this link and use SSH as authenthication.
I want to import TFS repo to git and clone into my local machine and I am using git-tf. Below my code:- git-tf clone http://server:8080/tfs/DefaultCollection $/SampleProject D:\TFSRepoName I want to pass username and password in url , so it automatic clone repo without asking for username and password.
If you don't want to be prompted for credentials every time you run git-tf, you can store your credentials in your GIT configuration for your repository:
$ git config --global git-tf.server.username your-username
$ git config --global git-tf.server.password your-password
Note that your password will be stored in the git configuration file in plain text. Be sure to set the ACLs or file permissions as appropriate to discourage people from reading your password out of your configuration file. Or you can store just the username and you will need to type only your password each time.
Reference : Accessing TFS with git-tf
You can also try to install and Use the Git Credential Manager,
When you connect to a Git repository from your Git client for the
first time, the credential manager will prompt for your credentials.
Once authenticated, the credential manager will create and cache a
personal access token for future connections to the repo. Git
commands that connect to this account will not prompt for user
credentials until the token expires or is revoked through VSTS/TFS.
One way to pass the credential is -
git pull http://username:password#url
Here "url" will be the url you use to clone the repository on tfs.
But this way is not recommended. Instead you should go for credential manager.
I had to use the default windows credential manager (windows 10 comes with this feature).
Control Panel\User Accounts\Credential Manager
Click windows credentials
Add generic credential
git:(tfs url, no trailing slash) ... example: git:http://tfs
username .. example: domain\username
password
save
Next time you use git for this url your saved credentials will be used
Has anyone successfully set up VSO & Jenkins & TFS?
Server URL: https://<myproject>.visualstudio.com/DefaultCollection
Login name and user password (using alternative credentials)
What domain name did you use? <domain>\username
If I run the tf command in Command Prompt, it succeeds, but Jenkins shows the same command as failing. I'm lost as to how to debug this. I also tried setting cached credentials for TFS, and not caching them. It seems as though Jenkins does not have cached credentials, but my command prompt does? Why would my system have stored credentials for me, but not Jenkins?
Error from Jenkins: TF30063: You are not authorized to access https://windwardstudios.visualstudio.com/DefaultCollection
With the release of version 4.0.0 of the Jenkins Team Foundation Server plugin, Team Foundation Version Control (TFVC) from Visual Studio Online (VSO) is now officially supported and both Personal Access Tokens (PAT) & alternate credentials can be used.
See the section User name and password in the wiki page.
This is an answer, but may not be what you want to hear. This used to work for us about a year ago. It required someone to stay logged into VisualStudio.com with his MSDN credentials on the build server. Then we simply didn't use credentials in the Jenkins TFS plug-in. Then one day, that simply stopped working. We tried alternative credentials, as #MrHinsh suggested, but never got it to work. Eventually we gave up and switched all of our TFS repositories to git (but still hosted on VisualStudio.com). That does work with the alternate credentials, and we have been very pleased since.
You need to configure Jenkins yo use the alternate credentials. It will not work with any other configuration and the credentials are never stored. Every command that you pass must include the same creds.
I'm trying to connect to a repository tfs a written project with xcode 5.
I'm using git-tf and it seems that the configuration in xcode 5 is correct.
The problem that feedback occurs when authentication with the TFS repository.
In xcode 5 open preferences and go in the accounts. I enter the login information with the url and in response I Access denied credentials are incorrect.
What am I doing wrong?
I was encountering the same issues when trying to authenticate in Xcode 5.
Make sure that you enabled Basic Authentication for your user profile for the TFS user account and that you selected "New Team project + GIT" instead of "New Team Project".
You can also try to clone the repository by using Terminal. Type the following command into Terminal and replace XXXXX with your values.
git clone https://XXXXX.visualstudio.com/DefaultCollection/_git/XXXXX
Then provide your credentials. Terminal will now clone the repository when authentication succeeds and your credentials will be saved to your keychain. Now when you try to authenticate in Xcode it will use the saved keychain credentials and it will (probably) successfully add your TFS repository to Xcode.
I hope this will help you!
See:
http://tfs.visualstudio.com/en-us/learn/use-git-and-xcode-with-tfs.aspx
for more information
https://www.visualstudio.com/en-us/get-started/share-your-xcode-projects-vs
Share your Xcode projects in Visual Studio Online using a Git repository. Or, if your team project uses TFVC instead of Git, you can use the git-tf command line tool to check your files into Visual Studio Online.
Enable alternate credentials
You can’t sign in to Xcode with an account that contains an # character, so you’ll have to enable alternate credentials.