Git configuration and first push

Navigate to the local project directory and create a git repository:
git init
Run command to make your first commit:
git commit -m "Your comment"
Setup link to your github repository and push changes:
git remote add origin <Link to GitHub Repo>     //maps the remote repo link to local git repo

git remote -v                                  //this is to verify the link to the remote repo 

git push -u origin master                      // pushes the commit-ed changes into the remote repo

Share your thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.