Skip to content

Instantly share code, notes, and snippets.

@okdistribute
Last active August 29, 2015 14:22
Show Gist options
  • Save okdistribute/464ec06b2e09379af20a to your computer and use it in GitHub Desktop.
Save okdistribute/464ec06b2e09379af20a to your computer and use it in GitHub Desktop.
dat fork

for forking manually

Scenario: Im on the latest checkout, ab23d12. I want to experiment on this dataset, which will be a pretty destructive transformation.

Currently,

dat import updates.csv 

will not create a fork on the current branch, but add d as the new latest.

a
|
b
|
c
|
d (latest)

When other people dat pull, they'll see 'd' as the latest checkout if they haven't changed their local repo.

What I'd really like is a fork, so that when they pull, they don't have to use my experimental version.

$ dat fork
Current version is bsbd234
$ dat forks 
ab23d12
bsbd234
$ dat import updates.csv

So it'd look like:

a
|
b
| \
c  d <- (c is still 'latest')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment