Skip to content

Instantly share code, notes, and snippets.

@katychuang
Last active December 26, 2015 06:29
Show Gist options
  • Select an option

  • Save katychuang/7108267 to your computer and use it in GitHub Desktop.

Select an option

Save katychuang/7108267 to your computer and use it in GitHub Desktop.

NYC Pyladies Workshop

Intro to Git/Github

October 23, 2013 7-9pm RSVP

##Agenda

  • General Announcements
  • Introductions around the room
    • Name
    • How you found out about Pyladies
    • What do you want to accomplish with coding in python?
    • Share open source projects you've worked on
  • Presentation on Git
  • Exercises

===

#http://bit.ly/16rsE3i

#Slides

##Github Exercises

First try these github exercises: https://help.github.com/categories/54/articles

===

##Git Exercises

Next, try these command line actions with git.

##Exercise 1

  1. Create a repository
  2. Add two files in it
  3. Check status
  4. Commit
  5. Check status
  6. Check log

Exercise 2

  1. Modify something
  2. See status
  3. Try to commit
  4. What went wrong?
  5. Add changes to index
  6. See status
  7. Now commit

Exercise 3

  1. Again, modify something
  2. Add modified stuff to index
    1. See status (DO NOT COMMIT)
  3. Modify same file again
  4. See status
  5. Commit
  6. What just happened?

Exercise 4

  1. View log
  2. View log on 1 line

Exercise 5

  1. Create a new branch and switch to that
  2. Add some new files and commit them in the branch
  3. Switch back to master branch
  4. Where are your new files now? Explain.

Tips:

Modifying commit message git commit --amend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment