Creating repository for existing project on Github
A lil note on how to make a new repository on GitHub of an existing local project
- Create a new repository on GitHub.
- Open your terminal
- cd to the project you want to create on Github
- Initialize the local directory as a Git repository
git init
- Add the files to your new local repository.
git add .
- Commit the added files
git commit -m "first commit"
- Copy the HTTPS URL of your newly created repository and add the URL to the following command
git remote add origin <remote repository URL>
then just push to GitHub git push origin master