This is E.S.R.Labs Repo - just like Google Repo but this one also runs under Microsoft Windows. For more information, see Version Control with Repo and Git.
Repo is a repository management tool that Google built on top of Git. Repo unifies many Git repositories when necessary, does the uploads to a revision control system, and automates parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git in the context of multiple repositories. The repo command is an executable Python script that you can put anywhere in your path. In working with the source files, you will use Repo for across-network operations. For example, with a single Repo command you can download files from multiple repositories into your local working directory.
- If you are a member of the Administrators group you have to turn off User Access Control (UAC) and then restart the computer.
- Otherwise you have to adjust your user rights to get SeCreateSymbolicLinkPrivilege priviledges. The editrights tools is provided as part of git-repo for Microsoft Windows.
- Download Git (http://git-scm.com/downloads)
- Add Git to your path environment variable: e.g. C:\Program Files (x86)\Git\cmd;
- Add MinGW to your path environment variable: e.g. C:\Program Files (x86)\Git\bin;
- Download Python 3+ (http://python.org/download/releases/3.3.0/)
- Add Python to your path environment variable: e.g. C:\Python33;
md %USERPROFILE%\bin
curl https://raw.githubusercontent.com/esrlabs/git-repo/master/repo > %USERPROFILE%/bin/repo
curl https://raw.githubusercontent.com/esrlabs/git-repo/master/repo.cmd > %USERPROFILE%/bin/repo.cmd
mkdir ~/bin
curl https://raw.githubusercontent.com/esrlabs/git-repo/master/repo > ~/bin/repo
curl https://raw.githubusercontent.com/esrlabs/git-repo/master/repo.cmd > ~/bin/repo.cmd
- Add Repo to your path environment variable: %USERPROFILE%\bin;
- Create a HOME environment variable that points to %USERPROFILE% (necessary for OpenSSH to find its .ssh directory).
- Create a GIT_EDITOR environment variable that has an editor executable as value. For this, first add the home directory of the editor executable to the path environment variable. GIT_EDITOR can than be set to "notepad++.exe", "gvim.exe", for example.
- sudo apt-get install git-core
- Since our Repo requires Python 3.3, we recommend to change the first line of the ~/bin/repo executable to:
#!/usr/bin/env python3.3
- Alternatively, use the following commands to switch between multiple Python versions:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 10
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.3 20
sudo update-alternatives --config python
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://raw.githubusercontent.com/esrlabs/git-repo/master/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
For more detailed instructions regarding git-repo usage, please visit git-repo.