A guide to getting started with Git and Github

Step 1: Create a repository in Github

Step 2: Configure git

git config --global user.name "my_username"
git config --global user.email "my_email@example.com"

Step 3: Clone GitHub repository

git clone "paste the URL you just copied"

Step 4: Make changes and add to git

git status
git add <filename_one>
git add --all

Step 5: Commit changes with a message

git commit -m "<add your commit message here>"
git push
git push origin master

Congratulations! 🎉 🎉 🎉

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store