push projects to DevOps from Visual Studio 2017












1














I am new to devops/git. I have a VS solution with 10 projects that I want to push into empty devops repo which I created. In VS > Options > Source control I have set it to Git. When I connected to Azure Devops from VS I had to specify a local repositiory. I initially set this to the Users directory. I then created Repositiory settings > .gitignore and commit/pushed it. The ignore file successfully uploaded into the repo and was pulled into the local repo. I can't see how to upload the projects. There seems to be no option to push them. I then changed the local repository to the directory where the solution projects are located. Now there is nothing available to pull or push.



I am the only developer on this project. My aim is to learn Devops not to create a team. In this case there is no existing repository to clone, which is the subject of almost all help articles. I'm trying to create a new one.










share|improve this question



























    1














    I am new to devops/git. I have a VS solution with 10 projects that I want to push into empty devops repo which I created. In VS > Options > Source control I have set it to Git. When I connected to Azure Devops from VS I had to specify a local repositiory. I initially set this to the Users directory. I then created Repositiory settings > .gitignore and commit/pushed it. The ignore file successfully uploaded into the repo and was pulled into the local repo. I can't see how to upload the projects. There seems to be no option to push them. I then changed the local repository to the directory where the solution projects are located. Now there is nothing available to pull or push.



    I am the only developer on this project. My aim is to learn Devops not to create a team. In this case there is no existing repository to clone, which is the subject of almost all help articles. I'm trying to create a new one.










    share|improve this question

























      1












      1








      1


      1





      I am new to devops/git. I have a VS solution with 10 projects that I want to push into empty devops repo which I created. In VS > Options > Source control I have set it to Git. When I connected to Azure Devops from VS I had to specify a local repositiory. I initially set this to the Users directory. I then created Repositiory settings > .gitignore and commit/pushed it. The ignore file successfully uploaded into the repo and was pulled into the local repo. I can't see how to upload the projects. There seems to be no option to push them. I then changed the local repository to the directory where the solution projects are located. Now there is nothing available to pull or push.



      I am the only developer on this project. My aim is to learn Devops not to create a team. In this case there is no existing repository to clone, which is the subject of almost all help articles. I'm trying to create a new one.










      share|improve this question













      I am new to devops/git. I have a VS solution with 10 projects that I want to push into empty devops repo which I created. In VS > Options > Source control I have set it to Git. When I connected to Azure Devops from VS I had to specify a local repositiory. I initially set this to the Users directory. I then created Repositiory settings > .gitignore and commit/pushed it. The ignore file successfully uploaded into the repo and was pulled into the local repo. I can't see how to upload the projects. There seems to be no option to push them. I then changed the local repository to the directory where the solution projects are located. Now there is nothing available to pull or push.



      I am the only developer on this project. My aim is to learn Devops not to create a team. In this case there is no existing repository to clone, which is the subject of almost all help articles. I'm trying to create a new one.







      git devops






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 at 0:32









      robert

      5816




      5816
























          1 Answer
          1






          active

          oldest

          votes


















          0















          I initially set this to the Users directory




          Make sure to set it in the parent folder where your 10 projects reside.

          That is where you can create a new repo in Visual Studio.




          From an existing solution



          To create a repo from an existing solution not in version control, select the Publish button in the bottom-right of the lower status bar Visual Studio publish button.

          This creates a new Git repo in the same directory as your solution and opens up the Publish view in Team Explorer so you can push your code to Azure Repos or another remote Git repository.




          https://docs.microsoft.com/en-us/azure/devops/repos/git/_img/vspublish.gif?view=vsts
          And that is from where you can do a git push from Visual Studio.






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53403666%2fpush-projects-to-devops-from-visual-studio-2017%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0















            I initially set this to the Users directory




            Make sure to set it in the parent folder where your 10 projects reside.

            That is where you can create a new repo in Visual Studio.




            From an existing solution



            To create a repo from an existing solution not in version control, select the Publish button in the bottom-right of the lower status bar Visual Studio publish button.

            This creates a new Git repo in the same directory as your solution and opens up the Publish view in Team Explorer so you can push your code to Azure Repos or another remote Git repository.




            https://docs.microsoft.com/en-us/azure/devops/repos/git/_img/vspublish.gif?view=vsts
            And that is from where you can do a git push from Visual Studio.






            share|improve this answer


























              0















              I initially set this to the Users directory




              Make sure to set it in the parent folder where your 10 projects reside.

              That is where you can create a new repo in Visual Studio.




              From an existing solution



              To create a repo from an existing solution not in version control, select the Publish button in the bottom-right of the lower status bar Visual Studio publish button.

              This creates a new Git repo in the same directory as your solution and opens up the Publish view in Team Explorer so you can push your code to Azure Repos or another remote Git repository.




              https://docs.microsoft.com/en-us/azure/devops/repos/git/_img/vspublish.gif?view=vsts
              And that is from where you can do a git push from Visual Studio.






              share|improve this answer
























                0












                0








                0







                I initially set this to the Users directory




                Make sure to set it in the parent folder where your 10 projects reside.

                That is where you can create a new repo in Visual Studio.




                From an existing solution



                To create a repo from an existing solution not in version control, select the Publish button in the bottom-right of the lower status bar Visual Studio publish button.

                This creates a new Git repo in the same directory as your solution and opens up the Publish view in Team Explorer so you can push your code to Azure Repos or another remote Git repository.




                https://docs.microsoft.com/en-us/azure/devops/repos/git/_img/vspublish.gif?view=vsts
                And that is from where you can do a git push from Visual Studio.






                share|improve this answer













                I initially set this to the Users directory




                Make sure to set it in the parent folder where your 10 projects reside.

                That is where you can create a new repo in Visual Studio.




                From an existing solution



                To create a repo from an existing solution not in version control, select the Publish button in the bottom-right of the lower status bar Visual Studio publish button.

                This creates a new Git repo in the same directory as your solution and opens up the Publish view in Team Explorer so you can push your code to Azure Repos or another remote Git repository.




                https://docs.microsoft.com/en-us/azure/devops/repos/git/_img/vspublish.gif?view=vsts
                And that is from where you can do a git push from Visual Studio.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 21 at 5:51









                VonC

                828k28726073151




                828k28726073151






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53403666%2fpush-projects-to-devops-from-visual-studio-2017%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    404 Error Contact Form 7 ajax form submitting

                    How to know if a Active Directory user can login interactively

                    TypeError: fit_transform() missing 1 required positional argument: 'X'