cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

middleware:version-control:git:duplicate-repo



[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.




middleware/version-control/git/duplicate-repo.txt ยท Last modified: 2021/11/26 by admin

Page Tools