23 KiB
23 KiB
!git init
Reinitialized existing Git repository in C:/Users/korne/Documents/git/ium_478815/.git/
!dvc init
Initialized DVC repository. You can now commit the changes to git. +---------------------------------------------------------------------+ | | | DVC has enabled anonymous aggregate usage analytics. | | Read the analytics documentation (and how to opt-out) here: | | <https://dvc.org/doc/user-guide/analytics> | | | +---------------------------------------------------------------------+ What's next? ------------ - Check out the documentation: <https://dvc.org/doc> - Get help and share ideas: <https://dvc.org/chat> - Star us on GitHub: <https://github.com/iterative/dvc>
!git status
On branch master Your branch is up to date with 'origin/master'. Changes to be committed: (use "git restore --staged <file>..." to unstage) new file: .dvc/.gitignore new file: .dvc/config new file: .dvcignore Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) deleted: petite-difference-challenge2 Untracked files: (use "git add <file>..." to include in what will be committed) .ipynb_checkpoints/ Untitled.ipynb init/
!git commit -m "Initial commit"
[master 2880651] Initial commit 3 files changed, 6 insertions(+) create mode 100644 .dvc/.gitignore create mode 100644 .dvc/config create mode 100644 .dvcignore
!dvc add data.csv
To track the changes with git, run: git add .gitignore data.csv.dvc To enable auto staging, run: dvc config core.autostage true
!git rm -r --cached data.csv
rm 'data.csv'
!mkdir data
!move data.csv data/
1 file(s) moved.
!git commit -m "stop tracking data.csv"
[master 1094a03] stop tracking data.csv 1 file changed, 4601 deletions(-) delete mode 100644 data.csv
!dvc add data/data.csv
To track the changes with git, run: git add 'data\data.csv.dvc' 'data\.gitignore' To enable auto staging, run: dvc config core.autostage true
!git add data/data.csv.dvc data/.gitignore
!git commit -m "Dodano dane dvc"
[master 302d4bd] Dodano dane dvc 2 files changed, 5 insertions(+) create mode 100644 data/.gitignore create mode 100644 data/data.csv.dvc
Parameter format not correct - "data".
!dvc remote add -d my_local_remote /dvcstore -f
Setting 'my_local_remote' as a default remote.
!git status
On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: Untitled.ipynb no changes added to commit (use "git add" and/or "git commit -a")
!git add .dvc/config
!git commit -m "Added DVC remote"
On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: Untitled.ipynb no changes added to commit (use "git add" and/or "git commit -a")
!dvc push
Everything is up to date.
!tree /dvc
Invalid switch - /dvc
!git add .
warning: LF will be replaced by CRLF in Untitled.ipynb. The file will have its original line endings in your working directory
!pip install dvc[ssh] paramiko
Requirement already satisfied: dvc[ssh] in c:\users\korne\miniconda3\lib\site-packages (2.10.2) Collecting paramiko Downloading paramiko-2.11.0-py2.py3-none-any.whl (212 kB) -------------------------------------- 212.9/212.9 KB 1.8 MB/s eta 0:00:00 Requirement already satisfied: typing-extensions>=3.7.4 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (4.2.0) Requirement already satisfied: appdirs>=1.4.3 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (1.4.4) Requirement already satisfied: flufl.lock>=5 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (7.0) Requirement already satisfied: pygtrie>=2.3.2 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (2.4.2) Requirement already satisfied: pydot>=1.2.4 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (1.4.2) Requirement already satisfied: funcy>=1.14 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (1.17) Requirement already satisfied: nanotime>=0.5.2 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.5.2) Requirement already satisfied: scmrepo==0.0.19 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.0.19) Requirement already satisfied: python-benedict>=0.24.2 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.25.1) Requirement already satisfied: packaging>=19.0 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (21.3) Requirement already satisfied: voluptuous>=0.11.7 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.13.1) Requirement already satisfied: dvclive>=0.7.3 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.8.2) Requirement already satisfied: dictdiffer>=0.8.1 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.9.0) Requirement already satisfied: zc.lockfile>=1.2.1 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (2.0) Requirement already satisfied: psutil>=5.8.0 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (5.9.0) Requirement already satisfied: networkx>=2.5 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (2.8.3) Requirement already satisfied: pyparsing>=2.4.7 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (3.0.7) Requirement already satisfied: dvc-render==0.0.5 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.0.5) Requirement already satisfied: tqdm<5,>=4.63.1 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (4.63.1) Requirement already satisfied: aiohttp-retry>=2.4.5 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (2.4.6) Requirement already satisfied: fsspec[http]>=2021.10.1 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (2022.5.0) Requirement already satisfied: rich>=10.13.0 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (12.4.4) Requirement already satisfied: requests>=2.22.0 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (2.27.1) Requirement already satisfied: grandalf==0.6 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.6) Requirement already satisfied: toml>=0.10.1 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.10.2) Requirement already satisfied: flatten-dict<1,>=0.4.1 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.4.2) Requirement already satisfied: diskcache>=5.2.1 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (5.4.0) Requirement already satisfied: tabulate>=0.8.7 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.8.9) Requirement already satisfied: shortuuid>=0.5.0 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (1.0.9) Requirement already satisfied: ruamel.yaml>=0.17.11 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.17.21) Requirement already satisfied: configobj>=5.0.6 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (5.0.6) Requirement already satisfied: colorama>=0.3.9 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.4.4) Requirement already satisfied: pathspec<0.10.0,>=0.9.0 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (0.9.0) Requirement already satisfied: shtab<2,>=1.3.4 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (1.5.4) Requirement already satisfied: distro>=1.3.0 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (1.7.0) Requirement already satisfied: dpath<3,>=2.0.2 in c:\users\korne\miniconda3\lib\site-packages (from dvc[ssh]) (2.0.6) Collecting sshfs[bcrypt]>=2021.11.2 Downloading sshfs-2022.3.1-py3-none-any.whl (15 kB) Collecting bcrypt Downloading bcrypt-3.2.2-cp36-abi3-win_amd64.whl (29 kB) Requirement already satisfied: future in c:\users\korne\miniconda3\lib\site-packages (from grandalf==0.6->dvc[ssh]) (0.18.2) Requirement already satisfied: asyncssh<3,>=2.7.1 in c:\users\korne\miniconda3\lib\site-packages (from scmrepo==0.0.19->dvc[ssh]) (2.11.0) Requirement already satisfied: pygit2>=1.7.2 in c:\users\korne\miniconda3\lib\site-packages (from scmrepo==0.0.19->dvc[ssh]) (1.9.2) Requirement already satisfied: gitpython>3 in c:\users\korne\miniconda3\lib\site-packages (from scmrepo==0.0.19->dvc[ssh]) (3.1.27) Requirement already satisfied: dulwich>=0.20.34 in c:\users\korne\miniconda3\lib\site-packages (from scmrepo==0.0.19->dvc[ssh]) (0.20.42) Requirement already satisfied: six in c:\users\korne\miniconda3\lib\site-packages (from paramiko) (1.16.0) Collecting pynacl>=1.0.1 Downloading PyNaCl-1.5.0-cp36-abi3-win_amd64.whl (212 kB) -------------------------------------- 212.1/212.1 KB 1.4 MB/s eta 0:00:00 Requirement already satisfied: cryptography>=2.5 in c:\users\korne\miniconda3\lib\site-packages (from paramiko) (36.0.2) Requirement already satisfied: aiohttp in c:\users\korne\miniconda3\lib\site-packages (from aiohttp-retry>=2.4.5->dvc[ssh]) (3.8.1) Requirement already satisfied: cffi>=1.1 in c:\users\korne\miniconda3\lib\site-packages (from bcrypt->dvc[ssh]) (1.15.0) Requirement already satisfied: atpublic>=2.3 in c:\users\korne\miniconda3\lib\site-packages (from flufl.lock>=5->dvc[ssh]) (3.0.1) Requirement already satisfied: phonenumbers<9.0.0,>=8.12.0 in c:\users\korne\miniconda3\lib\site-packages (from python-benedict>=0.24.2->dvc[ssh]) (8.12.49) Requirement already satisfied: python-dateutil<3.0.0,>=2.8.0 in c:\users\korne\miniconda3\lib\site-packages (from python-benedict>=0.24.2->dvc[ssh]) (2.8.2) Requirement already satisfied: xmltodict<1.0.0,>=0.12.0 in c:\users\korne\miniconda3\lib\site-packages (from python-benedict>=0.24.2->dvc[ssh]) (0.13.0) Requirement already satisfied: python-slugify<7.0.0,>=6.0.1 in c:\users\korne\appdata\roaming\python\python39\site-packages (from python-benedict>=0.24.2->dvc[ssh]) (6.1.1) Requirement already satisfied: python-fsutil<1.0.0,>=0.6.0 in c:\users\korne\miniconda3\lib\site-packages (from python-benedict>=0.24.2->dvc[ssh]) (0.6.1) Requirement already satisfied: mailchecker<5.0.0,>=4.1.0 in c:\users\korne\miniconda3\lib\site-packages (from python-benedict>=0.24.2->dvc[ssh]) (4.1.17) Requirement already satisfied: pyyaml<7.0,>=6.0 in c:\users\korne\miniconda3\lib\site-packages (from python-benedict>=0.24.2->dvc[ssh]) (6.0) Requirement already satisfied: ftfy<7.0.0,>=6.0.0 in c:\users\korne\miniconda3\lib\site-packages (from python-benedict>=0.24.2->dvc[ssh]) (6.1.1) Requirement already satisfied: certifi>=2017.4.17 in c:\users\korne\miniconda3\lib\site-packages (from requests>=2.22.0->dvc[ssh]) (2021.10.8) Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\korne\miniconda3\lib\site-packages (from requests>=2.22.0->dvc[ssh]) (2.0.12) Requirement already satisfied: idna<4,>=2.5 in c:\users\korne\miniconda3\lib\site-packages (from requests>=2.22.0->dvc[ssh]) (3.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\korne\miniconda3\lib\site-packages (from requests>=2.22.0->dvc[ssh]) (1.26.9) Requirement already satisfied: pygments<3.0.0,>=2.6.0 in c:\users\korne\miniconda3\lib\site-packages (from rich>=10.13.0->dvc[ssh]) (2.11.2) Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in c:\users\korne\miniconda3\lib\site-packages (from rich>=10.13.0->dvc[ssh]) (0.9.1) Requirement already satisfied: ruamel.yaml.clib>=0.2.6 in c:\users\korne\miniconda3\lib\site-packages (from ruamel.yaml>=0.17.11->dvc[ssh]) (0.2.6) Requirement already satisfied: setuptools in c:\users\korne\miniconda3\lib\site-packages (from zc.lockfile>=1.2.1->dvc[ssh]) (60.10.0) Requirement already satisfied: pycparser in c:\users\korne\miniconda3\lib\site-packages (from cffi>=1.1->bcrypt->dvc[ssh]) (2.21) Requirement already satisfied: wcwidth>=0.2.5 in c:\users\korne\miniconda3\lib\site-packages (from ftfy<7.0.0,>=6.0.0->python-benedict>=0.24.2->dvc[ssh]) (0.2.5) Requirement already satisfied: gitdb<5,>=4.0.1 in c:\users\korne\miniconda3\lib\site-packages (from gitpython>3->scmrepo==0.0.19->dvc[ssh]) (4.0.9) Requirement already satisfied: text-unidecode>=1.3 in c:\users\korne\appdata\roaming\python\python39\site-packages (from python-slugify<7.0.0,>=6.0.1->python-benedict>=0.24.2->dvc[ssh]) (1.3) Requirement already satisfied: frozenlist>=1.1.1 in c:\users\korne\miniconda3\lib\site-packages (from aiohttp->aiohttp-retry>=2.4.5->dvc[ssh]) (1.3.0) Requirement already satisfied: multidict<7.0,>=4.5 in c:\users\korne\miniconda3\lib\site-packages (from aiohttp->aiohttp-retry>=2.4.5->dvc[ssh]) (6.0.2) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in c:\users\korne\miniconda3\lib\site-packages (from aiohttp->aiohttp-retry>=2.4.5->dvc[ssh]) (4.0.2) Requirement already satisfied: yarl<2.0,>=1.0 in c:\users\korne\miniconda3\lib\site-packages (from aiohttp->aiohttp-retry>=2.4.5->dvc[ssh]) (1.7.2) Requirement already satisfied: aiosignal>=1.1.2 in c:\users\korne\miniconda3\lib\site-packages (from aiohttp->aiohttp-retry>=2.4.5->dvc[ssh]) (1.2.0) Requirement already satisfied: attrs>=17.3.0 in c:\users\korne\miniconda3\lib\site-packages (from aiohttp->aiohttp-retry>=2.4.5->dvc[ssh]) (21.4.0) Requirement already satisfied: smmap<6,>=3.0.1 in c:\users\korne\miniconda3\lib\site-packages (from gitdb<5,>=4.0.1->gitpython>3->scmrepo==0.0.19->dvc[ssh]) (5.0.0) Installing collected packages: pynacl, bcrypt, paramiko, sshfs Successfully installed bcrypt-3.2.2 paramiko-2.11.0 pynacl-1.5.0 sshfs-2022.3.1
!dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl
Setting 'ium_ssh_remote' as a default remote.
!dvc remote list
my_local_remote /dvcstore ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl
!dvc remote modify --local ium_ssh_remote password IUM@2021
!dvc push
1 file pushed