Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

repo: command not found?

Tags:

git

android

repo

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 

I get an error like these:

bash: repo: command not found

I think I need to setup cygwin for repo. What do I need next to get repo?

like image 949
aemon Avatar asked Sep 10 '10 03:09

aemon


1 Answers

Case 1: Not installed google repo yet?

mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

Use the following checksums when required:

For version 1.25 it is d06f33115aea44e583c8669375b35aad397176a411de3461897444d247b6c220

For version 1.26, it is 0cf5f52bcafb8e1d3ba0271b087312f6117b824af272bedd4ee969d52363a86b

Case 2: Already have google repo Installed, still wondering what went wrong ?

Add PATH=~/bin:$PATH to the end of file ~/.bashrc and then run source ~/.bashrc

like image 115
ishandutta2007 Avatar answered Sep 18 '22 01:09

ishandutta2007