Question about cloning a remote repo to web host and overwriting












0















I have this setup:




  • a local repo

  • a remote repo on azure devops where I pushed my local repo to

  • a web host containing the same files as local and remote where I earlier used FileZilla to get them there.


I am trying to change my workflow from local to web host using FileZilla to using local to azure and remote repo to web host.



I have just now finally managed to clone my azure repo to my webhost, but the whole azure folder is copied into my webhost folder as /webrepo. It looks something like this:



C:/Local/myfiles



azure.com/webrepo



webhost/myfiles/webrepo



My question is: can I just for example change name of myfiles on web host to something else, then change name of the webrepo folder to myfiles and drag it back one level and everything should still work? I mean, I have in myfiles setup the repo on azure as a remote repo and I will continue to pull certain files later on. Do I remove important git files if Ill make these changes and will that harm the connection?



Also, later, how do I make it so that the specific files I wanna pull doesnt end up in a folder with the same name as the azure devops webrepo but in the myfiles folder on webhost directly?



Thanks!










share|improve this question





























    0















    I have this setup:




    • a local repo

    • a remote repo on azure devops where I pushed my local repo to

    • a web host containing the same files as local and remote where I earlier used FileZilla to get them there.


    I am trying to change my workflow from local to web host using FileZilla to using local to azure and remote repo to web host.



    I have just now finally managed to clone my azure repo to my webhost, but the whole azure folder is copied into my webhost folder as /webrepo. It looks something like this:



    C:/Local/myfiles



    azure.com/webrepo



    webhost/myfiles/webrepo



    My question is: can I just for example change name of myfiles on web host to something else, then change name of the webrepo folder to myfiles and drag it back one level and everything should still work? I mean, I have in myfiles setup the repo on azure as a remote repo and I will continue to pull certain files later on. Do I remove important git files if Ill make these changes and will that harm the connection?



    Also, later, how do I make it so that the specific files I wanna pull doesnt end up in a folder with the same name as the azure devops webrepo but in the myfiles folder on webhost directly?



    Thanks!










    share|improve this question



























      0












      0








      0








      I have this setup:




      • a local repo

      • a remote repo on azure devops where I pushed my local repo to

      • a web host containing the same files as local and remote where I earlier used FileZilla to get them there.


      I am trying to change my workflow from local to web host using FileZilla to using local to azure and remote repo to web host.



      I have just now finally managed to clone my azure repo to my webhost, but the whole azure folder is copied into my webhost folder as /webrepo. It looks something like this:



      C:/Local/myfiles



      azure.com/webrepo



      webhost/myfiles/webrepo



      My question is: can I just for example change name of myfiles on web host to something else, then change name of the webrepo folder to myfiles and drag it back one level and everything should still work? I mean, I have in myfiles setup the repo on azure as a remote repo and I will continue to pull certain files later on. Do I remove important git files if Ill make these changes and will that harm the connection?



      Also, later, how do I make it so that the specific files I wanna pull doesnt end up in a folder with the same name as the azure devops webrepo but in the myfiles folder on webhost directly?



      Thanks!










      share|improve this question
















      I have this setup:




      • a local repo

      • a remote repo on azure devops where I pushed my local repo to

      • a web host containing the same files as local and remote where I earlier used FileZilla to get them there.


      I am trying to change my workflow from local to web host using FileZilla to using local to azure and remote repo to web host.



      I have just now finally managed to clone my azure repo to my webhost, but the whole azure folder is copied into my webhost folder as /webrepo. It looks something like this:



      C:/Local/myfiles



      azure.com/webrepo



      webhost/myfiles/webrepo



      My question is: can I just for example change name of myfiles on web host to something else, then change name of the webrepo folder to myfiles and drag it back one level and everything should still work? I mean, I have in myfiles setup the repo on azure as a remote repo and I will continue to pull certain files later on. Do I remove important git files if Ill make these changes and will that harm the connection?



      Also, later, how do I make it so that the specific files I wanna pull doesnt end up in a folder with the same name as the azure devops webrepo but in the myfiles folder on webhost directly?



      Thanks!







      git azure-devops web-hosting git-remote






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 28 '18 at 13:05









      Joe

      3,1771937




      3,1771937










      asked Nov 25 '18 at 13:41









      Emanuel OlssonEmanuel Olsson

      96115




      96115
























          0






          active

          oldest

          votes











          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%2f53468061%2fquestion-about-cloning-a-remote-repo-to-web-host-and-overwriting%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53468061%2fquestion-about-cloning-a-remote-repo-to-web-host-and-overwriting%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

          Create new schema in PostgreSQL using DBeaver

          Deepest pit of an array with Javascript: test on Codility

          Fotorealismo