Repo: command not found?

I am new to Git and REPO. I am in window 7, so I am using Cygwin. I installed Git from a Cygwin installation. After that, I try to make a repo using the following command in Cygwin.

$ repo init-u git://android.git.kernel.org/platform/manifest.git 

I get this error:

 bash: repo: command not found 

I think I need to configure Cygwin for the repo. What do I need next to get a repo?

+5
source share
4 answers

You still need to install the repo. REPO is a third-party tool built on top of git. See: http://source.android.com/source/downloading.html for installation

+6
source

edit the .bash_profile file and uncomment these fields. (any text editor will do)

 # Set PATH so it includes user private bin if it exists # if [ -d "${HOME}/bin" ] ; then # PATH="${HOME}/bin:${PATH}" # fi 

Restart CYGWIN.

+3
source

add the line export PATH = ~ / bin: $ PATH in the file ~ / .bashrc

+3
source

I have the same problem and I need to do: $ PATH=~/bin:$PATH every time I do repo synchronization, but at least it works.

+2
source