diff --git a/.ipynb_checkpoints/Untitled-checkpoint.ipynb b/.ipynb_checkpoints/Untitled-checkpoint.ipynb new file mode 100644 index 0000000..363fcab --- /dev/null +++ b/.ipynb_checkpoints/Untitled-checkpoint.ipynb @@ -0,0 +1,6 @@ +{ + "cells": [], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/Untitled.ipynb b/Untitled.ipynb new file mode 100644 index 0000000..b83cbf3 --- /dev/null +++ b/Untitled.ipynb @@ -0,0 +1,319 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "e6149cb4-9b21-4a74-b291-0e235545fd19", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Reinitialized existing Git repository in C:/Users/korne/Documents/git/ium_478815/.git/\n" + ] + } + ], + "source": [ + "!git init" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "57e08933-c129-40fe-a66d-c9af848f6e15", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Initialized DVC repository.\n", + "\n", + "You can now commit the changes to git.\n", + "\n", + "+---------------------------------------------------------------------+\n", + "| |\n", + "| DVC has enabled anonymous aggregate usage analytics. |\n", + "| Read the analytics documentation (and how to opt-out) here: |\n", + "| |\n", + "| |\n", + "+---------------------------------------------------------------------+\n", + "\n", + "What's next?\n", + "------------\n", + "- Check out the documentation: \n", + "- Get help and share ideas: \n", + "- Star us on GitHub: \n" + ] + } + ], + "source": [ + "!dvc init" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "c4887a28-9070-4334-ad28-e73df0e8ba95", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "On branch master\n", + "Your branch is up to date with 'origin/master'.\n", + "\n", + "Changes to be committed:\n", + " (use \"git restore --staged ...\" to unstage)\n", + "\tnew file: .dvc/.gitignore\n", + "\tnew file: .dvc/config\n", + "\tnew file: .dvcignore\n", + "\n", + "Changes not staged for commit:\n", + " (use \"git add/rm ...\" to update what will be committed)\n", + " (use \"git restore ...\" to discard changes in working directory)\n", + "\tdeleted: petite-difference-challenge2\n", + "\n", + "Untracked files:\n", + " (use \"git add ...\" to include in what will be committed)\n", + "\t.ipynb_checkpoints/\n", + "\tUntitled.ipynb\n", + "\tinit/\n", + "\n" + ] + } + ], + "source": [ + "!git status" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "09d5820e-9160-46b4-9b09-c8e7067d5614", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[master 2880651] Initial commit\n", + " 3 files changed, 6 insertions(+)\n", + " create mode 100644 .dvc/.gitignore\n", + " create mode 100644 .dvc/config\n", + " create mode 100644 .dvcignore\n" + ] + } + ], + "source": [ + "!git commit -m \"Initial commit\"" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "id": "471bb42c-0aa9-4f80-8886-62ac1f5ffd65", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "To track the changes with git, run:\n", + "\n", + " git add .gitignore data.csv.dvc\n", + "\n", + "To enable auto staging, run:\n", + "\n", + "\tdvc config core.autostage true\n" + ] + } + ], + "source": [ + "!dvc add data.csv" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "id": "b0ecb958-3587-4e05-a805-2f2d3f202a76", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rm 'data.csv'\n" + ] + } + ], + "source": [ + "!git rm -r --cached data.csv" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "e0e98bc7-05c7-4559-ab72-59789078a0ff", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[master 1094a03] stop tracking data.csv\n", + " 1 file changed, 4601 deletions(-)\n", + " delete mode 100644 data.csv\n" + ] + } + ], + "source": [ + "!git commit -m \"stop tracking data.csv\" " + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "id": "6c78dec3-5e84-408e-bc18-a1d6479e29ae", + "metadata": {}, + "outputs": [], + "source": [ + "!git add .gitignore data.csv.dvc" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "id": "e18dc1d8-a34c-470c-a029-64a566f4edf8", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[master 6a55468] Dodano dane dvc\n", + " 2 files changed, 5 insertions(+)\n", + " create mode 100644 .gitignore\n", + " create mode 100644 data.csv.dvc\n" + ] + } + ], + "source": [ + "!git commit -m \"Dodano dane dvc\"" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "id": "487150ca-dc73-4acb-9034-0b39a7c71838", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Setting 'my_local_remote' as a default remote.\n" + ] + } + ], + "source": [ + "!dvc remote add -d my_local_remote /dvcstore" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "id": "7e90da01-b1b5-405e-94bc-aa51676f076f", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "On branch master\n", + "Your branch is ahead of 'origin/master' by 3 commits.\n", + " (use \"git push\" to publish your local commits)\n", + "\n", + "Changes not staged for commit:\n", + " (use \"git add/rm ...\" to update what will be committed)\n", + " (use \"git restore ...\" to discard changes in working directory)\n", + "\tmodified: .dvc/config\n", + "\tdeleted: petite-difference-challenge2\n", + "\n", + "Untracked files:\n", + " (use \"git add ...\" to include in what will be committed)\n", + "\t.ipynb_checkpoints/\n", + "\tUntitled.ipynb\n", + "\tinit/\n", + "\n", + "no changes added to commit (use \"git add\" and/or \"git commit -a\")\n" + ] + } + ], + "source": [ + "!git status" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "id": "0bdb37ec-5d22-4bcd-a58f-ec306b1292a5", + "metadata": {}, + "outputs": [], + "source": [ + "!git add .dvc/config" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "id": "c639c9d6-8aed-43f4-8d4f-830d4fcc4692", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[master 21ecd25] Added DVC remote\n", + " 1 file changed, 4 insertions(+)\n" + ] + } + ], + "source": [ + "!git commit -m \"Added DVC remote\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "77ecb697-f936-4ea4-9d16-bcd870ab8561", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.12" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/init b/init new file mode 160000 index 0000000..54c31e2 --- /dev/null +++ b/init @@ -0,0 +1 @@ +Subproject commit 54c31e20d2948aa70a6331cf63fb7a9e9499e40e diff --git a/petite-difference-challenge2 b/petite-difference-challenge2 deleted file mode 160000 index c484d01..0000000 --- a/petite-difference-challenge2 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c484d015f79b0469646d8bc5e3ffdf2e0c732c76