Deleting Branches After Merge: Why and How

Step-by-step Breakdown of Merging Create a new branch: Create a new branch from the main branch using git checkout -b <new-branch-name>. Add commits to the branch: Make code changes in the new branch and commit them in meaningful units. Push to remote repository: Upload your working branch to the remote using git push origin <branch-name>. Create a pull request: Create a pull request on platforms like GitHub to request merging of your changes. ...

July 11, 2024 · 2 min · 338 words · In-Jun Hwang

Git Branching Strategies: Comparing Git Flow and GitHub Flow

Version control is a crucial aspect of modern software development. Git, a distributed version control system, empowers multiple developers to work concurrently. To leverage Git’s benefits, a structured branching strategy is essential. This article provides an in-depth analysis and comparison of Git Flow and GitHub Flow, two of the most widely adopted Git branching strategies. Git Flow: The Standard for Structured and Rigorous Versioning Git Flow is a branching strategy proposed by Vincent Driessen in 2010, designed to provide a systematic approach to managing a software development lifecycle. The model employs five core branches: ...

July 10, 2024 · 4 min · 703 words · In-Jun Hwang

How to Use Git: From Basic to Advanced

About: Git is a must-have distributed version control system for developers. It tracks changes to source code over time and helps multiple developers collaborate more efficiently. In this post, we’ll take an in-depth look at the core concepts of Git, cover essential commands in detail, along with real-world use cases and useful options of each command. Understanding the Basic Structure of Git Git consists of four major areas: Working Directory: The place where the actual files reside. This is where you write and modify your code. Staging Area: A place to temporarily hold changes that are ready to be committed. Local Repository: Where your committed versions are stored. Remote Repository: A repository on a server that is shared with your team. Understanding this structure will help you grasp the behavior of Git commands more easily. ...

July 8, 2024 · 6 min · 1096 words · In-Jun Hwang

Adjusting Git Commit Times

Introduction There may be situations where you need to adjust the time of a Git commit. For example: Organizing commit history across different time zones Maintaining a chronological commit history of a project Adjusting timestamps of restored code from a backup However, adjusting commit times should be done with caution, especially in collaborative projects. Methods to Adjust Commit Times 1. Specify Time When Creating a New Commit When creating a new commit, you can specify a specific time: ...

May 25, 2024 · 2 min · 370 words · In-Jun Hwang