GIT: CODE SOURCE MANAGEMENT

Within Datatask. There’s already a setup GITBOX that’s ready to be used.

cookbook12 1

Follow the link with your appropriated login credentials and you’ll end up in the gitbox dashboard.

cookbook12 2

You can do whatever actions you need (push, pull, clone, stash, revert, etc…​)

GIT IN DATALAB

There’s a git extension setup with the DATALAB.

cookbook12 3

Let’s see how to use it

First, you have to setup your credentials, in order to define who is doing the actions

mkdir /root/.local/gitcred
vim /root/.local/gitcred/usercredentials
    https://[user]:[password]@[lab].datatask.io
git config --global credential.helper 'store --file /root/.local/gitcred/usercredentials'

Then you can use the git interface.

  • Cloning a repository:

cookbook12 4

Just cloned trial, enter the repository and go to git interface, you should have

cookbook12 5
  • Pull, commit and push

Modifying a file in the git repository leads to a changed status in the git interface !!

cookbook12 6

If you stage your modification you can commit

cookbook12 7

After have commited your changes, you can know push them in the git repository, pressing it just one time

cookbook12 8

Go to the git repository, making sure it’s well pushed

cookbook12 9

And if you want to pull the latest changes

cookbook12 10

GIT IN LOCAL

The set up git remains above all a git. Therefore, it can be used with whatever client git you may have ex: command line unix git, gitbash for windows or Git extensions in IDE (Pycharm, Visual Studio, etc…​) On your setup gitbox, just copy the http git link:

cookbook12 11

Then, you can clone it providing appropriated credentials

cookbook12 12