How to add an existing project to GitHub repository?

These are the steps you an follow to connect/add an existing project with remote github repository.

- Initialize the local directory as a Git repository.
git init -b featured_branch

- Add the files in your new local repository. This stages them for the first commit.
git add .

- Commit the files that you've staged in your local repository.
git commit -m "First commit"

Add the URL for the remote repository where your local repository will be pushed.
git remote add origin

- Push the changes in your local repository to
git push origin featured_branch