Coder Social home page Coder Social logo

data-versioning-google-drive's Introduction

Preparation

  • install DVC cli and git cli

Setup (one time only on your project folder - this will create .dvc folder)

  • dvc init

Add data file to track

  • dvc add data/People_data_229MB.csv (add the data file that you want to track the version)
  • git add data/People_data_229MB.csv.dvc data/.gitignore
  • git commit -m "Add raw csv file"

Add Google drive (one time only on your project folder)

  • go to google drive create a empty folder and give it a name for example "dvc_test" , the get the id of the Google Drive folder
  • dvc remote add --default myremote
    gdrive://1_xf7TNOVQxFlI7eV7jOeqbvAsDYt2D8Q

push files into Google drive (it will ask for token for the first time, copy the link and put on the browser)

  • dvc push

if your team mates make changes to the data

  • dvc pull

if you modify the data file

  • dvc add data/People_data_229MB.csv
  • dvc push
  • git add data/People_data_229MB.csv.dvc data/.gitignore
  • git commit -m "Editted raw csv file"

if you modify the data file (short cut, dvc commit will auto detect all data files changes)

  • dvc commit
  • dvc push
  • git add data/People_data_229MB.csv.dvc data/.gitignore
  • git commit -m "Editted raw csv file"

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.