Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
/ git-workshop Public archive

Git workshop material. Find slides here and submit your PR

Notifications You must be signed in to change notification settings

HackCU/git-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation


HackCU


Git Workshop

You can find the slides from the Git workshop here. And this is also where you will be submitting your Pull Request.

Ready to submit your PR?

As a part of the workshop, we asked you to make your first open source contribution by submitting a Pull Request here. If you are unsure what a PR is, or you haven't attended the workshop, we recommend that you go back and review the slides.

Before submitting your PR, take a moment to consider what you have learnt and accomplished so far. You know how Git works and you have Git in your arsenal for using it with your projects. It's a really powerful tool. You also know how to collaborate with your team using Git.

That's a lot of stuff there! So congratulations on coming so far, and good luck with your PR!


Forking the repository

  1. The first thing you want to do is to fork this repository into your account. Click the Fork button at the top right corner (below your profile picture) to create your own version of this repository.

fork



Cloning your fork

  1. Now, go to your fork and click the green button that says Clone or download. Copy the link that is displayed and go to your terminal and run the following command:
$ git clone <url>

clone



Creating a branch and making changes

  1. Once you cd into the repository on your computer, create a new branch with a descriptive name.
  2. Then add a file into the my-contributions directory with your GitHub username.
  3. Commit your changes.
  4. Push your changes to your fork with the following command:
$ git push origin <your-branch-name>

This will create a new branch on your fork with the commits you made.


commands



Creating a PR

  1. Now go back to your fork. You may have to refresh to fetch updates. Change the branch to the branch you just made.
  2. Now click New Pull Request and change the base fork to HackCU/git-workshop and base to master. Ensure that the head fork is <your-username>/git-workshop and compare is <your-branch-name>

Pull Request 1


  1. Add a succinct, yet descriptive title. Describe in detail what your PR accomplishes. And hit Create Pull Request!

Pull Request 2



You're all set! Congratulations on creating your first Pull Request!  🎉
Now, your journey will never end. Keep hacking!

About

Git workshop material. Find slides here and submit your PR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published