[GitHub] Duplicate an existing repository and start as a new repository with another name



Resync with GitHub

## Create a new repository on GitHub in advance 


$ git clone https://github.com/xxx/old-repository.git
$ cd old-repository


## Remove Git updates from old repositories
$ rm -rf .git


## Create a new repository 
$ git init
$ git add .
$ git commit -m "Initial commit"
$ git remote add origin https://github.com/xxx/new-repository.git
$ git push -u origin master








Git - How to use Git.