Git Product home page Git Product logo

git-for-bio-scientists's Introduction

title author date license
Digital Lab Journalling with Git
Katrin Leinweber
2015-Apr-13
CC-BY-4.0 for own content; image attributions in titles

Slides of this presentation with recorded audio (archived notes)

Tree of Life

Tree of Life

Tree of Projects

Git tracks digital evolution of files

  • highlights exactly what changed, line by line
  • makes you comment file changes

Git is your file watchdog.

Good against: too many files

Good for: tidy project folders, but...

Good for: ...version history still accessible

Version control with Git

Technical

  • works best for line- or paragraph-based files
  • built for source code, but also useful for texts and simple images
  • less useful for complex or large file types
  • not a substitute for full backups

Cultural

  • helps build self-explanatory & verifiable project documentation (for your future self, colleagues, students, reviewers...)
  • enables less painful collaboration on same set of files
  • conflicts only if same lines in same file get changed
  • for text files: better than syncing tools

Basic Git vocabulary: repository/repo

  • project folder watched by Git
  • is still a normal folder: add, edit & delete files normally
  • database of file versions in hidden subfolder

Basic Git vocabulary: committing

  • saving a logical set of file changes in Git, together with meaningful comment
  • changes can be within single file, or across different ones
  • commit history: self-explanatory & verifiable documentation

Basic Git vocabulary: .gitignore

  • file that contains a repo's rules for ignoring files
  • No preview of highlighted changes? Large file? Auto-generated? Rather ignore those!

Basic Git vocabulary: .gitignore in GitHub for Windows

Vocabulary summary

repository/repo

  • project folder watched by Git, plus hidden database of file versions

committing

  • composing logical set of file changes and meaningful commit message

.gitignore

  • a repo's ignore rules for non-essential files & file types

How to start using Git?

  1. download client from windows.github.com (any other from git-scm.com/downloads/guis) & install
  2. start with small sub-project (protocol optimisation, diagram in R, report, etc.)
  3. besides working on the files themselves: commit logically connected changes often
  4. recommended: start writing texts in Markdown1 format
  5. optional (for collaboration etc.): create account with Git hosting service like GitLab or GitHub

Thanks to & Further Reading

Writing with Git
Git in Science
Git concepts & tech

Thanks for your attention! Questions?

Footnotes

  1. Possible in Word with Writage add-in โ†ฉ

git-for-bio-scientists's People

Contributors

katrinleinweber avatar simonwaldherr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

git-for-bio-scientists's Issues

Move PDF to Zenodo

  • replace "here" link with something useful, or remove
  • add DOI badge here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.