Upgrade to Pro — share decks privately, control downloads, hide ads and more …

UvA API software carpentry git github 2015

978e79ad01185b39efcfca1482f0f819?s=47 Gijs Molenaar
September 11, 2015

UvA API software carpentry git github 2015

978e79ad01185b39efcfca1482f0f819?s=128

Gijs Molenaar

September 11, 2015
Tweet

Transcript

  1. git(hub) Gijs Molenaar Folkert Huizinga

  2. Who are we Scientific Software Engineers Python & (C)++ AARTFAAC

    telescope MSc Artificial Intelligence SKA
  3. Agenda • Presentation about git • Interactive git tutorial •

    short break half way • next week: Python tips/tricks & IPython notebooks
  4. Days of solo science are over • Extreme example: •

    LHC Atlas paper - Contributers list 1/3rd of paper • Need to collaborate • We need reusable software
  5. None
  6. Why? • History management • Structure code • Backups •

    Collaboration • Enables Temporary / exploratory work
  7. the basics

  8. None
  9. git init

  10. $ mkdir helloworld && cd helloworld $ git init Initialized

    empty Git repository in /Users/gijs/helloworld/.git/ $ ls -a . .. .git $ git status On branch master Initial commit nothing to commit (create/copy files and use "git add" to track)
  11. git add & commit

  12. $ touch hi $ git add hi $ ls -a

    . .. .git hi $ git commit -a -m "first commit" [master (root-commit) f53feb8] first commit 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 hi $ git status On branch master nothing to commit, working directory clean
  13. None
  14. None
  15. SHA1 & parent

  16. branches

  17. None
  18. github

  19. None
  20. None
  21. None
  22. None
  23. merging

  24. None
  25. When not to use github • Changing binary data, +5

    MB
  26. just always use git • For code & LaTeX •

    Start using git for every project • You will start you ‘get’ it and find it useful
  27. http://swcarpentry.github.io/git-novice/ reference document: http://software-carpentry.org/v5/novice/ref/02-git.html https://help.github.com/

  28. None