liveBook · Manning

Repository

As explained in Software Engineering for Data Scientists

A repository is a storage location containing version-controlled files and their change history, including a remotely hosted copy shared across systems.

A repository is a collection of version-controlled files, commonly hosted remotely and copied locally for development. Contributors modify files locally, then push tracked changes so others can retrieve them. section 2.1

A practical Git repository workflow uses these commands:

  • Use git clone to download and track an existing remote repository. section 2.2.1
  • Use git init to initialize a new local repository. section 2.6
  • Use git add and git commit to stage changes and create milestones. section 2.6
  • Use git push to send local changes to a remote repository, and git pull to download and merge updates. section 2.6
  • Use branches and git merge to develop and combine alternate repository snapshots. section 2.10 section 2.6

Clone a shared Python repository

Run git clone https://github.com/kennethreitz-archive/requests3.git to download a repository into a local folder. Changes made there are monitored by Git; git status can reveal a newly created untracked file such as test_file.txt. section 2.2.1

Figure 2.2 Source control enables easier coding collaboration between different developers of the same codebase, often stored on a shared remote repository
ch2 source control overview

Source control connects local development with a shared remote repository, making collaboration, change tracking, reversal, conflict handling, and backup easier. section 2.1

How Software Engineering for Data Scientists covers it

How deep it goes
Defines local and remote repositories and gives a command-level workflow, but does not descend into Git internals.
Examples
Uses a GitHub Python repository, git clone, git status, and a newly created test_file.txt.
What it assumes
Assumes access to a terminal and Git installation, while teaching repository terminology and workflow from basic concepts.
What you can do after
Operate/configure repositories with Git by cloning, initializing, staging, committing, pushing, pulling, and merging changes.
How it connects
Connects source control, Git, local repositories, remote repositories, branches, commits, and merge workflows.

Also explained in

Compare how 14 books explain repository →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Software Engineering for Data Scientists. The section links point to the parts of the book it draws on.