Skip to content

Instantly share code, notes, and snippets.

@vanderhoop
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save vanderhoop/986b306d76da60760b59 to your computer and use it in GitHub Desktop.

Select an option

Save vanderhoop/986b306d76da60760b59 to your computer and use it in GitHub Desktop.

Pushing Local Changes to Your Fork on GitHub

You now have a local copy of your fork of the class repo! Now you'll learn how to update that fork from your machine.

Exercise Objectives

  • gain additional reps making changes to a local git repo
  • push local changes to a remote repository

Directions

  1. cd into ~/dev/wdi/godot/w01/d02/student/
  2. Once there, create a text file called git_proof.txt and add the text "Hello world!" to the file.
  3. Add and commit your changes to the repo.
  4. Once the changes are committed, use the command git push origin master
  5. In Chrome, head to your forked version of the repo on GitHub and visit the w01/d02/student. You should see your file.
  6. Awesome, edit your git_proof.txt file with some additional (safe for work) text.
  7. Add, commit, and push your changes. Validate that they appear on your fork on GitHub.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment