How to copy existed repository to new one

 1. Create a new repository at, for example RetrofitRx

 2. Clone repository

git clone RetrofitRx

or clone branch

cd ~/projects
git clone -b branch git clone RetrofitRx

 3. Change remote

git remote -v
git remote rm origin
git remote add origin

 4. Push initial commit

git push

 5. Set upstream

git push --set-upstream origin master
comments powered by Disqus