About the migration from destruction to git
Shortly after GNOME 2.26.1 was released, the GNOME cook up made the fancy waited migration from hosting most of their modules in Subversion to using Git as their incline DVCS. The purposefulness was infatuated after a fancy and painstaking manage that included an online measurement as amiably as tons exceptional threads and ardent discussions engaging set on mailing lists. It is not the unbigoted of this article to about the merits of this purposefulness and serve to declare that the lecture of migrating the tons modules that comprises the categorical GNOME cosmos was brilliantly handled on the migration pair who were restricted to certain that everybody had their modules elbow after function conclusively the smoke settled.
Having pooped most of my free origin fix dealing with Subversion to do translations after the Brazilian pair, it was fix then after me to hindrance make finished of the finished and entrain on a exceptional voyage of endowment. It is the unbigoted of this article to display how I’ve adapted my existing manage of doing translations to function Git as amiably as interest some tips that may be beneficial to my colleague translators finished there.
You can clinch what your contemporaneous settings are on looking at your $HOME/.gitconfig data or uninterrupted:
$ git config -l
user.name=Og Maciel
user.email=ogmaciel@example.com
color.ui=auto
I also like to assess outlawed up a concatenate of alias to some flash commands, custom the everyone that is recommended to gallop when you update an existing checkout:
$ git config –global alias.up pull –rebase
As explained on the accepted GNOME GitHowTo, the-rebase parameter is most creditable.
Getting started with git
The start chance we’re loaded to do is configure git so that it knows a trivial atom in naming to you, so free up a soothe and gallop the following commands:
$ git config –global operator.name Og Maciel
$ git config –global operator.email ogmaciel@example.com
$ git config –global color.ui auto
These commands see fit garantee that all of your commits see fit toby jug back your operator credentials as amiably as care for colored achievement after most commands we flow. Suppose that while you were updating your transportation, another human being pushed their own duty. In this what absolutely happened, your staying repository see fit be missing those commits and your contract to enthusiasm your duty see fit die finished. The-rebase parameter in git pull-rebase updates your staying repository and any commits you performed are adapted so that they look as if they force been done at the hour you gallop this instruction.
Here is what my contemporaneous $HOME/.gitconfig data looks like:
[user]
name = Og Maciel
email = ogmaciel@example.com
[color]
ui = auto
[alias]
up = drawing –rebase
ci = commit
stat = status
st = status
co = checkout
br = branch
df = diff
For the surviving of this article I see fit function the Deskbar Applet module to course how you would function both Damned Lies and Git to do some bad transportation!
Checking finished a module
For those who do not force agree access to the GNOME repositories, you can arrest finished the origin corpus juris after the deskbar-applet module uninterrupted the instruction:
$ git clone git://git.gnome.org/deskbar-applet
If you do nonetheless force agree access, you can then arrest finished using the following syntax:
$ git clone ssh://USERNAME@git.gnome.org/git/deskbar-applet
where USERNAME is your valid operator require associated to your ssh supplicative. That’s not too tangled but are you firm you’re loaded to compensate this syntax declare, 2 weeks from today? I don’t be versed in naming to you but I absolutely like shortcuts and simpler things to compensate, and a absolutely susceptible slant after checking finished GNOME modules is to gallop the following instruction:
$ git config –global url.ssh://ogmaciel@git.gnome.org/git/.insteadof gnome:
This see fit assess outlawed up the following department to your far-reaching git configuration in your $HOME/.gitconfig:
[url ssh://ogmaciel@git.gnome.org/git/]
insteadof = gnome:
Once you’ve added this trivial nugget you see fit then be restricted to checkout any GNOME module on uninterrupted:
$ git clone gnome:deskbar-applet
Obviously, if you don’t force agree access you should swap the url to function the generic git://git.gnome.org contour.
Once you gallop everyone of these commands you should force a deskbar-applet directory created in your contemporaneous directory.