Related Pages
Git - How to use Git.
## 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
Related Pages
Git - How to use Git.