Skip to content

A repository for new members to learn git and the GitHub workflow

Notifications You must be signed in to change notification settings

compgeolab/checkin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git and GitHub check-in

A repository for new members to learn git and the GitHub workflow.

Exercise: Add yourself to this repository

  1. Fork this repository to your own account (creates a copy that you can edit freely)
  2. Clone your fork to your computer (downloads a copy of your fork to your computer so you can work on it)
  3. Create a .md file in the repository with your name in lowercase (e.g., leo.md) using a text editor of your choice (VS Code is a good choice)
  4. In the text file, add your full name and a few sentences about yourself (anything you like, be creative)
  5. Create a branch for you to work on (git branch name_of_your_branch)
  6. Switch to the branch so that changes you make go on that branch (git switch name_of_your_branch)
  7. Add the text file to the next commit (git add name_of_your_file.txt). In git, this is known as "staging".
  8. Make a new commit (git commit)
  9. Push your new branch to GitHub (git push -u origin name_of_your_branch). Now the commit and new branch should be in your fork.
  10. Go to the original repository compgeolab/checkin (in git, this is known as the "upstream") and create a new pull request.
  11. Make sure the title and description of the pull request are relevant (tells people what you did and why).
  12. Wait for someone to merge your pull request ("PR")
  13. In your local clone, go back to the main branch (git switch main)
  14. Pull in the latest changes from the original repository (git pull https://github.com/compgeolab/checkin main)
  15. Your file should now appear in your local clone
  16. Push the changes to the main branch of your fork on GitHub (git push origin main)

About

A repository for new members to learn git and the GitHub workflow

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published