How to copy existed repository to new one Development 25.10.2017

 1. Create a new repository at github.com/new, for example RetrofitRx

 2. Clone repository

git clone https://github.com/proft/RetrofitDemo.git RetrofitRx

or clone branch

cd ~/projects
git clone -b branch git clone https://github.com/proft/RetrofitDemo.git RetrofitRx

 3. Change remote

git remote -v
git remote rm origin
git remote add origin git@github.com:proft/RetrofitRx.git

 4. Push initial commit

git push https://proft:password@github.com/proft/RetrofitRx.git

 5. Set upstream

git push --set-upstream origin master