Create git repo from existing project
Often I forget the commands to create git repo from existing project in my local machine.
First step is to init a git repo in your project. Use git bash
$ git init
Second step to add the project files into local git repo
$ git add .
Use the .(dot) after the add, this is saying add all files.
This command is to commit the files with message.
$ git commit -m "Commit message"
Create a repo in the github
$ git remote add origin 'remote repository URL'
After that use following command to push your code to remote repo in the github.
$ git push origin master
After the this command you should be able to see your code in the github.
Happy Coding 🙂