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

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
            

Commit your changes


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

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!