Open
Description
Basic Commits to Remote Repo
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 presentation linked in our main README
file.
What You'll Need
- Github.com account
- git installed - https://git-scm.com/downloads
- An IDE like Visual Studio Code - https://code.visualstudio.com/download
Steps
- 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.
Activity