Git and Gerrit FAQ/fr

Voici une FAQ sur comment utiliser Git et.

Effectuer un pull


Utiliser ou  ?
sauf si vous êtes en expert en git, c'est la même chose. Le répertoire à distance "gerrit" est le "origin" pour le code des projets Wikimedia. Changer le répertoire en un autre puis entrer enter git remote -v pour voir ce que remotes utilise.

As Gerrit/Tutorial#Configuring git-review says, you can put the following in  to ensure this:



Il est écrit "Please, commit your changes or stash them before you can merge." (S'il vous plaît, livrez vos modifications ou cachez-les avant de pouvoir les fusionner). Que dois-je faire ?
Pour vous débarrasser de vos changements (et de tout ce qui était dans votre stash):

git stash git stash clear

Vous pouvez maintenance effectuer votre pull.

What's the difference between and  ?
The -a option automatically stages all tracked, modified files before the commit, letting you skip the  step unless you need to start tracking new files. A tracked file is a file that was in your last commit.

When should I use rather than just  ?
You use  when you don't want your changes to be rebased, because you already used. To be more specific, when amending an existing change (adding changes to an existing patch set), you don't want to rebase against the master branch, as it causes the diffs to be cluttered.

How do I save inline code comments? I can only save them as drafts.
You have to click the "Up" button to go back to the change overview page. The inline comments will be attached to your "global" comment when you "reply" (save your comment).

How do I watch changes?
See Gerrit/watched projects.

How do I link to Gerrit URLs from Wikimedia wikis using internal link syntax?
To link to revision 1234 use revision 1234 : revision 1234.