- Introduction to git and github
- Boris Haeussler
- Abstract
-
This session will not be a normal python coffee, nor - in fact - about python at all.
In this interactive session, I will give an introduction to git, a version
control system that we ALL should be using for our scientific coding.
I will show you how you can very quickly set up a repository for your code/project,
connect it to github, run it and use it for your own code or, even better, collaborative
code (at least the basics, it's too powerful for me to even know everything).
You can come along to just listen, or you can download a piece of example code that
I will provide at a later stage which lets you follow interactively. Or - best - you
can bring your own code/folder that you always wanted to put on a version control system.
Whether you use my example or your own code, you should be able to follow everything.
Please get set in advance and bring your own laptop to follow-up our hands-on PyCoffee session
(please find me in the office the day BEFORE if you have problem, so we can solve them).
This is what you need to do:
- install git (ESO laptops have it installed already, I think, try by typing 'git' )
Here are 2 ways to get it:
https://git-scm.com/download/mac
or via MacPorts
https://iamphioxus.org/2013/04/20/installing-git-via-macports-on-mac-osx/
- set it up so you can use it:
git config --global user.name "YOUR NAME" (quotation needed because of the spaces)
git config --global user.email Your email address
- set up the standard editor otherwise it will use 'vim'
git config --global core.editor "whatever you chose"
- create an account on github (there are others that you can use, but I might be able to
help less with those)
https://github.com/
- set up github with a ssh key
Here's a description what you need to do
https://help.github.com/articles/connecting-to-github-with-ssh/
That's it, you're set to go and should be able to take it from there.
I will send around my example 'code' the day before.
- Repository
-
-
|