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.
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.
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.
Go to your new repository, click the “Clone or download” button, and copy the URL.
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.
Once there, clone your newly created repo.
git clone url_you_copied
Open Visual Studio and open the folder your of your repo.
Open readme.md and make any changes you desire.
Check all changes you made. Within Visual Studio’s Terminal window, ensure you’re on your repo’s folder.
git status
Stage your change.
git add README.md
Commit your change with a descriptive message.
git commit -m “message”
Push it to remote repo. If you get prompted for credentials, input your Github credentials.
git push
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.
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
c:\Users\yourid\Github
- create it.git clone url_you_copied
readme.md
and make any changes you desire.git status
git add README.md
git commit -m “message”
git push