Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 1.91 KB

Git.md

File metadata and controls

86 lines (58 loc) · 1.91 KB

Git

author: I. Bartomeus

Git is happening

PhDcomics

Git, Github, Shell, Rstudio

What it does

  • Keep track of your changes
  • Allow you to keep a history
  • Backup your project
  • Simplify colaboration

git_col

Example

git_example

Main barrier is wording

Git is hard, but worthy

Words you need the first day:

  • stage (load the boxes)

  • commit (load the truck) #write your history

    Once commited changes are never lost!

  • push (truck leaves)

  • pull

  • ...

More wording

  • origin (central repository)
  • branch
  • master (the branch you are in)
  • HEAD (pointers)
  • checkout (move along the tree)

whatch video at te bottom after using Git for a month.

Workflow

pull (technically fetch+merge)-> work -> commit locally-> push to a central repo.

.gitignore (and pasword)

  • Is just a file saying what do you want git to ignore
  • e.g. the file with your pasword!

More...

  • Branching
  • fast-forward merge
  • cherry-pick
  • rebase

Resources

Git for Scientists

More

Git happens See it only after using git for a while.