Member-only story

Working with Git and GitHub in a Docker Environment

Minh
4 min readApr 18, 2024

Entering the world of software development can be daunting, particularly when it involves navigating version control systems like Git and collaboration platforms like GitHub. This article is both a note to myself and a guide for others who may struggle with integrating Git, GitHub, and Docker into their workflows.

Figure 1: CodeSync: Git, GitHub, Docker| Credit: DALL·E

What is Git? Think of Git as a history book of your project’s files. It allows you to turn back the pages to previous chapters (versions) of your work, giving you the freedom to review past versions and revert to them if needed.

What is GitHub? GitHub serves as a library for your Git projects. It allows you to store your projects (repositories) in a public or private setting, share them with others, and collaborate on projects together, much like sharing books with fellow library members.

What is Docker? Docker helps you create small, isolated rooms called containers in your computer, where you can run different applications or projects without them messing with the main system of your computer. It’s like having multiple isolated labs to experiment in without the risk of one experiment affecting another.

A Practical Scenario: The “Mage Docker” Project

Let’s imagine you’re developing a software project named “Mage Docker.” Your goal is to work on different aspects of the project without causing issues in the main version that everyone sees.

Figure 2: Digital Blueprint: Navigating Mage Docke| Credit: DALL·E

Step-by-Step Process

  1. Entering the Project Room

When you start working, you navigate to the project’s directory in the Docker environment. Think of this as walking into a specific room in a building where all the project files are stored.

cd mage_docker

2. Understanding the Current Situation

You run git status to see what's going on in this room. It's like looking around to see if anything has been moved or changed since you last checked. Git tells you which branch of the project you're on (a branch is like a version of your…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Minh

Written by Minh

My parents named me after the sun, and in my heart, I know its light will always rise and shine.

No responses yet

Write a response