Data Science Collective

Advice, insights, and ideas from the Medium data science community

Member-only story

MASTERING GIT

Mastering Git: Essential Commands and Workflows for Daily Use

6 min readApr 4, 2025

--

Mastering Git is essential for efficiently version-controlling your work and collaborating effectively. In this post, we will explore 12 commonly used practical Git commands and workflows, covering the bulk of your Git needs. We will take a task-oriented approach, emphasising how to accomplish common tasks with Git. We’ll first explore commands and workflows useful for working with remote repositories, followed by commands that help keep your working directory tidy.

This post assumes you have a basic understanding of Git commands (e.g. staging, unstaging, committing, creating branch) and are familiar with working with remote repositories (e.g. cloning, pushing, pulling).

📌 Working with remote repositories

Let’s begin by looking at 6 common tasks that frequently arise when working with remote repositories:

📍 Create a copy of remote branch, make changes and push it

When working on a code change, one useful workflow is to:

  1. Create a local branch from an existing remote branch
  2. Make changes in the branch locally
  3. Push local changes to the upstream branch

--

--

Data Science Collective
Data Science Collective

Published in Data Science Collective

Advice, insights, and ideas from the Medium data science community

Zolzaya Luvsandorj
Zolzaya Luvsandorj

Written by Zolzaya Luvsandorj

Data Scientist 💡 | Growth Mindset 🔑 | Math Lover 🔢 Melbourne, AU 📍 https://zluvsand.github.io/ | https://www.etsy.com/au/shop/Zolygram

Responses (4)