repo: command not found?

I am new to git and repo. I am in window 7 so I use cygwin. I have installed git from cygwin setup. After that I try to repo with the following command in cygwin.

$ repo init-u git://

  • How to import an existing project from github into Android Studio
  • What are the purpose of the bare git repositories in .repo/projects/ created by the Android repo script?
  • Gradle dependency causing error “Invalid Magic Number”
  • branch metrics link on Android app
  • Remove old and add new git in android studio
  • patch differences between android kernel and vanilla linux kernel
  • error like these> bash : repo: command not found

    I think I need to make setup in cygwin for repo. What do I need next to get repo.
    Thanks in advance,
    hope for help!

  • How to I combine two separate Git repositories?
  • warning: remote HEAD refers to nonexistent ref, unable to checkout
  • How can I generate/apply git patches only for commits that alter specific files
  • git remove file from stash
  • How to properly rebase in SourceTree?
  • Using Source Tree, rebase with conflict, rebase doesn't work after conflict resovled
  • 4 Solutions collect form web for “repo: command not found?”

    You still need to install repo. repo is a third party tool built on top of git. See:
    for how to install

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

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

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

    Restart CYGWIN.

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

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