Skip to content

Light2Dark/git_tutorial

Repository files navigation

Git and Github Tutorial

A tutorial for beginners and intermediates at Git and Github!

image image

Usage

If you'd like to clone this and use as your own:

  1. Click Code and git clone url gitpics

Exercises

Start-a-Repo Challenge

  1. Create your own local repository
  2. Add files and commit it

Push-to-Github Challenge

  1. Create a remote repository in GitHub
  2. Push your local repository to your remote repository

Branching

  1. Create a new branch in your working directory (local repo) and commit new files
  2. Push this to remote repository
  3. Create and merge the pull request

Friend-Revert Challenge

  1. Add your friend as a collaborator
  2. Ask them to commit and push something new in a new branch
  3. Merge this changes
  4. Decide to abandon the whole thing and revert back to the first commit you ever made (use git checkout, add, commit)
  5. You can always git checkout back to the previous commit if needed

Contribute-Repo Challenge

  1. Contribute to this repo by forking : Forking Article
  2. There is a file called participants.txt . Edit that file and add your name
  3. Add, commit and push. Remember to pull before you push
  4. Create a pull request
  5. Congrats!

External Resources

Pro Git Book
Bash Commands
Mosh Programming Tutorial
GitHub article Intermediate Git

Contributions

If you have suggestions / issues:

  • Open an issue in this repository or get in contact with us. The issue tab is the 2nd tab after <> Code

OR

Credits

Some images taken from Pro Git Book. Thanks Keng Son for being my partner and STC Committees for helping out!

About

How to use Git and Github

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages