in Education by
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? Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
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 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

Related questions

0 votes
    I am using Team Services on domain visualstudio.com and I need to delete one project, I found out that I ... don't have privileges. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    we are using git in Team Foundation Service, and we are trying to find a way to delete a remote ... /DefaultCollection/_git/Xxxxxx' Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I'm using TFS Preview (Team Foundation Service) with one of my projects with Visual Studio 2012. I'm also ... from Visual Studio. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I have a Visual Studio online Team Project with a repository. I have been using this with VS 2013 for a ... and doing clone again? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I tried the following approach in my build script: git -c http.extraheader="AUTHORIZATION: bearer %SYSTEM_ACCESSTOKEN% ... Thoughts? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I am unable to run any commands against my remote repository at Visual Studio Team Services (VSTS) because ... like SourceTree. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I am using Visual Studio 2017 Community Edition (CE), and I have signed into my Microsoft account and I am ... to resolve this issue. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Microsoft now has support for Git repositories on their Team Foundation Service. I have an account on Team ... to TFService. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I have created a branch named dev. I have done a pull request to send dev code to master, when I do ... to resolve these conflicts. Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I would like create a Flat list of work items query in TFS in which the results contain all of the specified PBI ... are. Any ideas? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    Steps In Visual Studio Pulled from remote repo 1 merge conflict. Merged manually, clicked 'Accept merge' Result ... with all updates Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I've just joined my friend's Team Services account (free for the first 5 users account). If I visit the home ... how to resolve this? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I just performed a clean install of Visual Studio 2015 SP3, and I'm getting this in the Output window at ... to VSTS at startup. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    What does a Git Commit object contain?...
asked Nov 4, 2020 in General by JackTerrance
0 votes
    Whenever I try to add a new project to my SourceSafe repository it creates 3 folders with the same name ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 12, 2022 in Education by JackTerrance
...