Change the current working directory to your local project. Initialize the local directory as a Git repository.
git init
git config user.email "[email protected]"
git config --global user.name "Your Name"
Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD YOUR-FILE'.
git add .
Commit the files that you've staged in your local repository.
git commit -m "First commit"
To remove this commit and modify the file, use 'git reset --soft HEAD~1' and commit and add the file again.
In the Command prompt, add the URL for the remote repository where your local repository will be pushed. Copy remote repository URL field at the top of your GitHub repository's Quick Setup page, click to copy the remote repository URL.
git remote add origin remote [repository URL]
git remote -v
Push the changes in your local repository to GitHub.
git push origin master