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://android.git.kernel.org/platform/manifest.git

  • “/usr/local/bin/git”: error=2, No such file or directory Android Studio
  • “Subversion command line client version is too old” error in Android Studio
  • File from non-active change list is modified
  • What is the correct way to configure an Android project with submodules for use with the sonarqube gradle plugin?
  • How to enable Version Control window in android studio
  • How to import and run project, in Android Studio 1.1, from Github?
  • 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!

  • NPM - Fork module, change code and send PR to author
  • Git clone unable to create file
  • Using GIT with Joomla
  • Unable to clone using Git over HTTP
  • Mupdf in Android Studio
  • Tag commit in VSCode
  • 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:
    http://source.android.com/source/downloading.html
    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.