Using global/system git-review config files (git-review.conf) is deprecated

Today I started to contribute for the Wikimedia Gerrit community with Git and GitHub Desktop on my Windows 10 (PC).

First I installed the git-review package with Pip:

  • How to merge the gerrit branch to another gerrit branch
  • Gerrit with Github
  • Push to gerrit using SourceTree
  • How to set default remote ref in TortoiseGit?
  • Gerrit remove Need Verified +1 (Verified)
  • How to push tag to specific branch in gerrit
  • $ pip install git-review

    After I loged in, I cloning and creating a new branch with Git:

    $ ssh -p 29418
    $ git clone ssh://
    $ git pull origin master
    $ git checkout -b suriyaakudocommits origin/master
    $ git branch
    $ git branch suriyaakudocommits --track origin/master
    $ git checkout suriyaakudocommits

    I editing a file and add it with git add:

    $ git diff
    $ git status
    $ git add 404.html
    $ git status
    $ git diff --cached
    $ git commit
    $ git pull --rebase origin master

    I used git review -R to commit my changes from my branch “suriyaakudocommits” to Wikimedia Gerrit (branch: “master“) and I got this (error) output:

    C:\Users\Suriyaa\Documents\GitHub\mediawiki-config [suriyaakudocommits]> git review -R
    Using global/system git-review config files (C:\Users\Suriyaa/.config/git-review\git-review.conf) is deprecated
    Traceback (most recent call last):
      File "C:\Python34\lib\", line 170, in _run_module_as_main
        "__main__", mod_spec)
      File "C:\Python34\lib\", line 85, in _run_code
        exec(code, run_globals)
      File "C:\Python34\Scripts\git-review.exe\", line 9, in <module>
      File "C:\Python34\lib\site-packages\git_review\", line 1522, in main
      File "C:\Python34\lib\site-packages\git_review\", line 1393, in _main
        config = Config(os.path.join(top_dir, ".gitreview"))
      File "C:\Python34\lib\site-packages\git_review\", line 285, in __init__
      File "C:\Python34\lib\site-packages\git_review\", line 671, in load_config_file
      File "C:\Python34\lib\", line 672, in read
        self._read(fp, filename)
      File "C:\Python34\lib\", line 1058, in _read
        raise MissingSectionHeaderError(fpname, lineno, line)
    configparser.MissingSectionHeaderError: File contains no section headers.
    file: 'C:\\Users\\Suriyaa/.config/git-review\\git-review.conf', line: 1

    What’s wrong? I hope someone can help me.

    I use Python 3.4 (32 bit)!

    I followed the MediaWiki tutorial for Gerrit.

    The code of C:\\Users\\Suriyaa/.config/git-review\\git-review.conf file:

    defaultremote = origin

  • How do I get git branch history to match master after a squash rebase?
  • In Eclipse/EGit is there a way to edit commit message of unpushed/local commit?
  • ! master -> master (fetch first)
  • How to work with (sub)directory renames in Git?
  • Delete history in local repository instead of cloning it again with --depth 1
  • what does cvs2git need from a CVS repository?
  • One Solution collect form web for “Using global/system git-review config files (git-review.conf) is deprecated”

    The MediaWiki tutorial you mentioned now says that the git-review.conf file is deprecated. Instead, you should use:

    $ git config --global gitreview.remote origin

    I also had to remove the .conf file to get rid of the warning.

    Git Baby is a git and github fan, let's start git clone.