CristinaRuth / dev-together-madison

We help early career devs gain the skills they typically learn the first few years of their dev career. Follow our workshop content and exercises to learn needed basic concepts and skills to be successful in a work environment.
https://www.meetup.com/DevTogetherMad
Creative Commons Attribution 4.0 International
3 stars 2 forks source link

GitHub Basics Workshop - Exercise #1 - Your 1st Repo & Commit #9

Open CristinaRuth opened 5 years ago

CristinaRuth commented 5 years ago

Basic Commits to Remote Repo

This exercise is a part of our Github source control and basics workshop. If you're completely new to Github and git, we highly recommend you read through the workshop contents if you want to learn both.

This exercise is to help you get familiar with creating a repo, making commits, and understanding the process around that.

There is no pull request needed for this exercise!

For terminologies, please refer to the source-control-basics.md workshop contents.

What You'll Need

Steps

  1. Go to Github.com, login to your account and create a new repository - https://github.com/new. Check the “Initialize this repository with a README” box.
  2. Go to your new repository, click the “Clone or download” button, and copy the URL.
  3. Open a command prompt (or Terminal on Mac) and go to your Github folder. If it doesn’t exist, a typical path on Windows is c:\Users\yourid\Github - create it.
  4. Once there, clone your newly created repo. git clone url_you_copied
  5. Open Visual Studio and open the folder your of your repo.
  6. Open readme.md and make any changes you desire.
  7. Check all changes you made. Within Visual Studio’s Terminal window, ensure you’re on your repo’s folder. git status
  8. Stage your change. git add README.md
  9. Commit your change with a descriptive message. git commit -m “message”
  10. Push it to remote repo. If you get prompted for credentials, input your Github credentials. git push
  11. Load your repository on github.com in your browser and you should see “2 commits” there now. Click on that, and you will see your latest commit.