0 votes
1 view
in Azure by (32.3k points)

I'm trying to put an existing project under Git source control, but I'm unclear on several things.

I have set up a 'Team Foundation Service' Git account online.

I currently have an ASP.NET MVC 4 solution - in my Projects folder. I have created a Git 'repository' locally (an empty folder currently). Should this just be my current application folder in Projects? Or does it need to be a copy?

How do I get my existing files into the online repository?

1 Answer

0 votes
by (16.8k points)

Make sure you install Git Software like Git Extensions on your local environment.

Use git inti in your solution folder, it creates a repository

Do .gitignore, so that no unnecessary commit happens

git add

git commit

Now add a remote, git remote add origin <whole url>

Now to your code, use git push

Check this article, it will be more helpful: https://docs.microsoft.com/en-us/azure/devops/repos/git/share-your-code-in-git-vs?view=azure-devops

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...