How to Clone/Copy Existing Code to New Code Repo in Git?
- Clone Existing repo to new directory
$git clone git@github.com:org/old-repo.git C:\GitHub\code-cov-test
- go to code-cov-test dir
- Remove old repo git
- Do git initialization
- Add all files to git
- Commit the local changes
- Add new repo as remote if repo not present create new repo
- Push the code to new repo in GitHub
Comments
Post a Comment