[git-users] Git on 2 computers and syn
Hi, i use for now BitBucket (from ATlassian) but in order to not depend on internet connection, i would like to be sure both computer (laptop and desktop) always have the same code. As git is a distributed system, i would like to sync not only 1 repository but all repositories at once. Should i install on both computer Gitlab (both computers have Kubuntu 16.04) ? I do not want my repositories to be public or to pay for a Git solution, so i do not use GitHub. Till now i use BitBucket and i use it as Git remote solution, so maybe this is the best solution till now... I'm waiting your answers. thx -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [git-users] Git on 2 computers and syn
Hi, As BitBucket is high available I suggest to keep it as a main central repo. To have sync-ed copy of it you can have repos in any other places. Start them with *git clone --mirror * and update them once every minute with *git remote update --prune*. Alex On Wed, Jun 1, 2016 at 5:51 PM, Alain wrote: > Hi, > > i use for now BitBucket (from ATlassian) but in order to not depend on > internet connection, i would like to be sure both computer (laptop and > desktop) always have the same code. > > As git is a distributed system, i would like to sync not only 1 repository > but all repositories at once. > > Should i install on both computer Gitlab (both computers have Kubuntu > 16.04) ? > > I do not want my repositories to be public or to pay for a Git solution, > so i do not use GitHub. > Till now i use BitBucket and i use it as Git remote solution, so maybe > this is the best solution till now... > > I'm waiting your answers. > > thx > > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to git-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [git-users] Git on 2 computers and syn
Thx Alex, regarding structure of Git repository i would like to understand something. I've read book and watched videos with several "trends / methods" regard sync several computers together. 1st method is to have several git repository (1 per project) 2nd method is to have 1 main git repository where all projects are inside it i understand that from maintenance point of view method 2 is easier to maintain but is it the best solution ? a commit or an update would run on ALL projects inside this repository, so maybe it's time consuming. On Wed, Jun 1, 2016 at 5:00 PM, Alexandru Pătrănescu wrote: > Hi, > > As BitBucket is high available I suggest to keep it as a main central > repo. > > To have sync-ed copy of it you can have repos in any other places. > Start them with *git clone --mirror * and update them > once every minute with *git remote update --prune*. > > Alex > > > On Wed, Jun 1, 2016 at 5:51 PM, Alain wrote: > >> Hi, >> >> i use for now BitBucket (from ATlassian) but in order to not depend on >> internet connection, i would like to be sure both computer (laptop and >> desktop) always have the same code. >> >> As git is a distributed system, i would like to sync not only 1 >> repository but all repositories at once. >> >> Should i install on both computer Gitlab (both computers have Kubuntu >> 16.04) ? >> >> I do not want my repositories to be public or to pay for a Git solution, >> so i do not use GitHub. >> Till now i use BitBucket and i use it as Git remote solution, so maybe >> this is the best solution till now... >> >> I'm waiting your answers. >> >> thx >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Git for human beings" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to git-users+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to git-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Alain --- Windows 7 x64 / Fedora 20 x64 MySQL 5.6.x Apache 2.4.7 / OpenSSL 1.0.1c Tomcat 7.17 PHP 5.5 -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [git-users] Git on 2 computers and syn
On Wednesday, June 1, 2016 at 9:26:44 AM UTC-6, Alain wrote: > > Thx Alex, > > regarding structure of Git repository i would like to understand something. > I've read book and watched videos with several "trends / methods" regard > sync several computers together. > > 1st method is to have several git repository (1 per project) > 2nd method is to have 1 main git repository where all projects are inside > it > > i understand that from maintenance point of view method 2 is easier to > maintain but is it the best solution ? a commit or an update would run on > ALL projects inside this repository, so maybe it's time consuming. > > I think that the "best solution" is subjective. It depends on how you'll use the solution and what you'll place in the repository. On one end of the spectrum is the Linux kernel git repository. It is a single repository with over 15 000 000 lines of source code, including multiple years of multi-branch, fast paced development stored in a single repository. Browsing the history of that repository is easy because you can see the entire history. Cloning that repository is slower because it is large. On the other end of the spectrum are many Java projects that use maven (or gradle) and tend to have many very small repositories, each able to build a part of the solution. They clone very quickly, compile very quickly, but are more difficult to navigate the history, since you may be crossing repository boundaries to see the full history. There are some projects that use git submodules. I've not yet found a case where git submodules were a net positive for me. http://somethingsinistral.net/blog/git-submodules-are-probably-not-the-answer/ expresses well what concerns me about git submodules. My personal preference has been more towards a single repository, with careful effort to keep large binary files out of the repository. I'm sure others will view it differently. Mark Waite > On Wed, Jun 1, 2016 at 5:00 PM, Alexandru Pătrănescu > wrote: > >> Hi, >> >> As BitBucket is high available I suggest to keep it as a main central >> repo. >> >> To have sync-ed copy of it you can have repos in any other places. >> Start them with *git clone --mirror * and update >> them once every minute with *git remote update --prune*. >> >> Alex >> >> >> On Wed, Jun 1, 2016 at 5:51 PM, Alain > >> wrote: >> >>> Hi, >>> >>> i use for now BitBucket (from ATlassian) but in order to not depend on >>> internet connection, i would like to be sure both computer (laptop and >>> desktop) always have the same code. >>> >>> As git is a distributed system, i would like to sync not only 1 >>> repository but all repositories at once. >>> >>> Should i install on both computer Gitlab (both computers have Kubuntu >>> 16.04) ? >>> >>> I do not want my repositories to be public or to pay for a Git solution, >>> so i do not use GitHub. >>> Till now i use BitBucket and i use it as Git remote solution, so maybe >>> this is the best solution till now... >>> >>> I'm waiting your answers. >>> >>> thx >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Git for human beings" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to git-users+...@googlegroups.com . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Git for human beings" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to git-users+...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Alain > --- > Windows 7 x64 / Fedora 20 x64 > MySQL 5.6.x > Apache 2.4.7 / OpenSSL 1.0.1c > Tomcat 7.17 > PHP 5.5 > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [git-users] Git on 2 computers and syn
Thx Mark, in fact as it is for personal purpose i'm facing the advantage of both structure. For easy maintenance, a huge git repository would be great. However all "subprojects" are in fact independent from each other as they are mainly Wordpress or Joomla plugins or even graphical artwork. So for each of them a repository could be usefull as they are independent. If Git'd propose a local history for each submodule/subproject it would be great Alain On Thursday, June 2, 2016 at 2:57:46 AM UTC+2, Mark Waite wrote: > > > > On Wednesday, June 1, 2016 at 9:26:44 AM UTC-6, Alain wrote: >> >> Thx Alex, >> >> regarding structure of Git repository i would like to understand >> something. >> I've read book and watched videos with several "trends / methods" regard >> sync several computers together. >> >> 1st method is to have several git repository (1 per project) >> 2nd method is to have 1 main git repository where all projects are inside >> it >> >> i understand that from maintenance point of view method 2 is easier to >> maintain but is it the best solution ? a commit or an update would run on >> ALL projects inside this repository, so maybe it's time consuming. >> >> > I think that the "best solution" is subjective. It depends on how you'll > use the solution and what you'll place in the repository. > > On one end of the spectrum is the Linux kernel git repository. It is a > single repository with over 15 000 000 lines of source code, including > multiple years of multi-branch, fast paced development stored in a single > repository. Browsing the history of that repository is easy because you > can see the entire history. Cloning that repository is slower because it > is large. > > On the other end of the spectrum are many Java projects that use maven (or > gradle) and tend to have many very small repositories, each able to build a > part of the solution. They clone very quickly, compile very quickly, but > are more difficult to navigate the history, since you may be crossing > repository boundaries to see the full history. > > There are some projects that use git submodules. I've not yet found a > case where git submodules were a net positive for me. > http://somethingsinistral.net/blog/git-submodules-are-probably-not-the-answer/ > > expresses well what concerns me about git submodules. > > My personal preference has been more towards a single repository, with > careful effort to keep large binary files out of the repository. I'm sure > others will view it differently. > > Mark Waite > > >> On Wed, Jun 1, 2016 at 5:00 PM, Alexandru Pătrănescu >> wrote: >> >>> Hi, >>> >>> As BitBucket is high available I suggest to keep it as a main central >>> repo. >>> >>> To have sync-ed copy of it you can have repos in any other places. >>> Start them with *git clone --mirror * and update >>> them once every minute with *git remote update --prune*. >>> >>> Alex >>> >>> >>> On Wed, Jun 1, 2016 at 5:51 PM, Alain wrote: >>> Hi, i use for now BitBucket (from ATlassian) but in order to not depend on internet connection, i would like to be sure both computer (laptop and desktop) always have the same code. As git is a distributed system, i would like to sync not only 1 repository but all repositories at once. Should i install on both computer Gitlab (both computers have Kubuntu 16.04) ? I do not want my repositories to be public or to pay for a Git solution, so i do not use GitHub. Till now i use BitBucket and i use it as Git remote solution, so maybe this is the best solution till now... I'm waiting your answers. thx -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Git for human beings" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to git-users+...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Alain >> --- >> Windows 7 x64 / Fedora 20 x64 >> MySQL 5.6.x >> Apache 2.4.7 / OpenSSL 1.0.1c >> Tomcat 7.17 >> PHP 5.5 >> > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.