Joe Sleiman
Joe Sleiman

Reputation: 2496

push my local folder project to TFS

I ran:

git remote add origin <url to the tfs :https://tfs.....>
git push –f origin master

the result:

Upvotes: 0

Views: 6883

Answers (1)

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31003

You can follow this MSDN article:

  • Create a local Git repo for your code. (If your code is already in a local Git repo, you can skip this step.)

    1. Navigate to the folder where your code is on the command line:

cd /home/fabrikam/fiber

  1. Create a Git repo on your machine to store your code. You will connect this repo to Team Services in the next step.

git init .

  1. Commit your code into the local Git repo.

git add --all

git commit -m "first commit of my code"

Create your Team Services repo

  1. Create a new Team services Git repo for your code. Copy the clone URL once you are done creating your repo.

  2. Connect your local repo to the Team Services repo using the copied clone URL in the git remote command:

git remote add origin https://fabrikops2.visualstudio.com/DefaultCollection/Fabrikam/_git/FabrikamApp

Push your code

Set up authentication with credential managers or SSH before continuing.

git push origin master

Upvotes: 3

Related Questions