Copy Git Repos to another machine

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I want to copy all my git repos from my old machine to my new machine (both Ubuntu). I will keep using both machines... I am doing this out of sheer laziness, (and maybe for some local branches and stashes at hand), but I could just as well freshly clone from the various upstream repositories...



Question: Is this harmful in some way?



(Of course the repo states should be binary identical, whether I copy files or go for git clone. But I could imagine, git puts some kind of unique (g)uuid into the .git folder upon first clone or so, to distinguish machines or such... but just a guess. I simply don't know the inner workings...)




update:
my fear is primarily around uuids or similar, non-uniqueness of then two local git 'repos' ("clients") towards one remote repo ("master/server").



If you know about this being ok or not-ok, I need actual sources for that knowledge (beyond „I believe“).



That being said, I think I found a duplicate of my question on Superuser.










share|improve this question



























    up vote
    1
    down vote

    favorite












    I want to copy all my git repos from my old machine to my new machine (both Ubuntu). I will keep using both machines... I am doing this out of sheer laziness, (and maybe for some local branches and stashes at hand), but I could just as well freshly clone from the various upstream repositories...



    Question: Is this harmful in some way?



    (Of course the repo states should be binary identical, whether I copy files or go for git clone. But I could imagine, git puts some kind of unique (g)uuid into the .git folder upon first clone or so, to distinguish machines or such... but just a guess. I simply don't know the inner workings...)




    update:
    my fear is primarily around uuids or similar, non-uniqueness of then two local git 'repos' ("clients") towards one remote repo ("master/server").



    If you know about this being ok or not-ok, I need actual sources for that knowledge (beyond „I believe“).



    That being said, I think I found a duplicate of my question on Superuser.










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I want to copy all my git repos from my old machine to my new machine (both Ubuntu). I will keep using both machines... I am doing this out of sheer laziness, (and maybe for some local branches and stashes at hand), but I could just as well freshly clone from the various upstream repositories...



      Question: Is this harmful in some way?



      (Of course the repo states should be binary identical, whether I copy files or go for git clone. But I could imagine, git puts some kind of unique (g)uuid into the .git folder upon first clone or so, to distinguish machines or such... but just a guess. I simply don't know the inner workings...)




      update:
      my fear is primarily around uuids or similar, non-uniqueness of then two local git 'repos' ("clients") towards one remote repo ("master/server").



      If you know about this being ok or not-ok, I need actual sources for that knowledge (beyond „I believe“).



      That being said, I think I found a duplicate of my question on Superuser.










      share|improve this question















      I want to copy all my git repos from my old machine to my new machine (both Ubuntu). I will keep using both machines... I am doing this out of sheer laziness, (and maybe for some local branches and stashes at hand), but I could just as well freshly clone from the various upstream repositories...



      Question: Is this harmful in some way?



      (Of course the repo states should be binary identical, whether I copy files or go for git clone. But I could imagine, git puts some kind of unique (g)uuid into the .git folder upon first clone or so, to distinguish machines or such... but just a guess. I simply don't know the inner workings...)




      update:
      my fear is primarily around uuids or similar, non-uniqueness of then two local git 'repos' ("clients") towards one remote repo ("master/server").



      If you know about this being ok or not-ok, I need actual sources for that knowledge (beyond „I believe“).



      That being said, I think I found a duplicate of my question on Superuser.







      backup git copy cloning






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 17 mins ago

























      asked 5 hours ago









      Frank Nocke

      341413




      341413




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          There is nothing wrong with repository move from one machine to another.



          Git will update its internal configurations (if needed) on first run into the repo.



          Maybe you can ask yourself why you need to move a repository like a normal folder, if your codebase needs things that are not included in a clean clone from remote then you're probably doing something wrong.



          If you concerns are about project configuration files consider that probably on your new machine you'll have to recreate databases or change path or similar so there's no point in keeping old configurations for your project, start fresh and go clean.






          share|improve this answer








          New contributor




          Luigi Pressello is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.
























            up vote
            1
            down vote













            No harm. I recommend using rsync, but tar or cp will do just as well.






            share|improve this answer




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "2"
              ;
              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',
              convertImagesToLinks: true,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f936408%2fcopy-git-repos-to-another-machine%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote













              There is nothing wrong with repository move from one machine to another.



              Git will update its internal configurations (if needed) on first run into the repo.



              Maybe you can ask yourself why you need to move a repository like a normal folder, if your codebase needs things that are not included in a clean clone from remote then you're probably doing something wrong.



              If you concerns are about project configuration files consider that probably on your new machine you'll have to recreate databases or change path or similar so there's no point in keeping old configurations for your project, start fresh and go clean.






              share|improve this answer








              New contributor




              Luigi Pressello is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.





















                up vote
                2
                down vote













                There is nothing wrong with repository move from one machine to another.



                Git will update its internal configurations (if needed) on first run into the repo.



                Maybe you can ask yourself why you need to move a repository like a normal folder, if your codebase needs things that are not included in a clean clone from remote then you're probably doing something wrong.



                If you concerns are about project configuration files consider that probably on your new machine you'll have to recreate databases or change path or similar so there's no point in keeping old configurations for your project, start fresh and go clean.






                share|improve this answer








                New contributor




                Luigi Pressello is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.



















                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  There is nothing wrong with repository move from one machine to another.



                  Git will update its internal configurations (if needed) on first run into the repo.



                  Maybe you can ask yourself why you need to move a repository like a normal folder, if your codebase needs things that are not included in a clean clone from remote then you're probably doing something wrong.



                  If you concerns are about project configuration files consider that probably on your new machine you'll have to recreate databases or change path or similar so there's no point in keeping old configurations for your project, start fresh and go clean.






                  share|improve this answer








                  New contributor




                  Luigi Pressello is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  There is nothing wrong with repository move from one machine to another.



                  Git will update its internal configurations (if needed) on first run into the repo.



                  Maybe you can ask yourself why you need to move a repository like a normal folder, if your codebase needs things that are not included in a clean clone from remote then you're probably doing something wrong.



                  If you concerns are about project configuration files consider that probably on your new machine you'll have to recreate databases or change path or similar so there's no point in keeping old configurations for your project, start fresh and go clean.







                  share|improve this answer








                  New contributor




                  Luigi Pressello is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Luigi Pressello is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 4 hours ago









                  Luigi Pressello

                  1212




                  1212




                  New contributor




                  Luigi Pressello is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Luigi Pressello is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Luigi Pressello is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






















                      up vote
                      1
                      down vote













                      No harm. I recommend using rsync, but tar or cp will do just as well.






                      share|improve this answer
























                        up vote
                        1
                        down vote













                        No harm. I recommend using rsync, but tar or cp will do just as well.






                        share|improve this answer






















                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          No harm. I recommend using rsync, but tar or cp will do just as well.






                          share|improve this answer












                          No harm. I recommend using rsync, but tar or cp will do just as well.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 4 hours ago









                          ptman

                          18.5k12042




                          18.5k12042



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f936408%2fcopy-git-repos-to-another-machine%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Comments

                              Popular posts from this blog

                              List of Gilmore Girls characters

                              What does second last employer means? [closed]

                              One-line joke