Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 493 Bytes

new-repo-from-existing-folder.md

File metadata and controls

31 lines (25 loc) · 493 Bytes

Create a new repository from an existing folder

  1. Init the local git:
cd existing_folder/
git init
  1. Default branch is master! We need to change it!
git branch -m main
  1. Create a remote repo:
gh repo create project-name -d "Description for project-name" --public
  1. Update the changes when created the new repo:
git checkout main
git pull
  1. Edit files, add, commit and upload to github:
git add .
git commit -m "Commit description"
git push