Git For Data Scientist
Git For Data Scientist
simultaneously without interfering with each other’s work. It keeps track of changes made to
files, enabling you to revert to previous states, collaborate efficiently, and manage code versions
effectively. Here are some key concepts and commands:
Key Concepts
1. Repository (Repo) .git: A Git repository is a directory that contains your project work,
including all the changes and the complete history of the project.
2. Commit: A commit is a snapshot of your repository at a specific point in time. It
represents a change or set of changes made to the files.
3. Branch: Branches are used to develop features, fix bugs, or experiment with new ideas
independently of the main project. The default branch is usually called main or master.
4. Merge: Merging is the process of combining changes from different branches.
5. Clone: Cloning is the process of creating a copy of an existing repository.
6. Remote: A remote is a common repository that all team members use to exchange their
changes. Examples include GitHub, GitLab, and Bitbucket.
7. Pull: Pulling is the process of fetching changes from a remote repository and merging
them into your local repository.
8. Push: Pushing sends your committed changes to a remote repository.
Git commands are run on the shell or terminal. To download git visit: https://git-scm.com/downloads
Git Commands: