Git and Functions Review



Git and Functions Review

2 0


2016-03-12-ac

Github review class

On Github Yonet / 2016-03-12-ac

Git and Functions Review

Slides: github.com/Yonet/2016-03-12-ac

On Board

Write what you remember & your questions about:

Git

  • What is the point of Git?
  • How do we use it?
  • Git Flow

Exercise

If you prefix your branches with your name, it is easier to delete them after you are done.

Clone a repo

git clone https://github.com/Yonet/ac-algorithms
cd ac-algorithms

Create a new branch

git checkout -b your-branch-name

Solve the questions inside simpleAdding folder.

Check changed files

git status

Add changed files

git add file-name
git add .
git status

add . to add all changed files. Not a good idea! Git status to check what's been added.

Commit your changes

git commit -m "I have added some amazing functionality"

Commit messages are important. Describe what changed well. It makes it easier to find changes.

Push to github

git push origin your-branch-name

Ready to create your first pull request to master branch?

Good news!

Functions

  • Invocation
  • Definition
  • Arguments
  • Scope

THE END

Thank you for your attention!

Git and Functions Review Slides: github.com/Yonet/2016-03-12-ac