User:Purodha/git+gerrit

=This page is currently a collection of stuff, not even a draft. Do not use it!=

Get access
Follow

and wait until you have you username and access privileges confirmed.


 * https://www.mediawiki.org/wiki/Gerrit/Tutorial#Set_Up_SSH_Keys_in_Gerrit

Set up your local user and system requirements
Install  following https://www.mediawiki.org/wiki/Gerrit/Tutorial#Setting_up_Git

and gerrit ?
 * https://www.mediawiki.org/wiki/Gerrit/Tutorial#Setting_up_Git

Either of those will do, depending on your needs: export EDITOR=vim git config --global core.editor "vim"

git config --global user.name ' your-git-username ' git config --global user.email ' an-e-mail-adress-of-yours-which-is-also-set-in-gerrit ' git config --global gitreview.remote origin

Check an extension out, amend it, upload your change for review
Find out the extensions name in git+gerrit, e.g. from git clone ssh:// user-name @gerrit.wikimedia.org:29418/mediawiki/extensions/ extension-name .git cd extension-name git review -s git checkout master git pull --rebase git checkout -b "purodha-`~/bin/ymds`" echo " Happy typing!" — cd "$1" git commit --all $* git show HEAD git fetch --all echo " >> now upload changes." git review

Get the newest changes from gerrit in your branch
cd user-name git checkout target-branch git pull --rebase origin master This may cause merge conflicts.