Skip to content

Commit fee80c3

Browse files
mallurivikasbakayu
andauthored
Added blog post: How I Tried Resolving Merge Conflict Today (#15)
* Added blog post: How I Tried Resolving Merge Conflict Today * Update content/en/blog/resolving-merge-conflicts-vikas.md Co-authored-by: Ayush Chauhan <56398566+bakayu@users.noreply.github.com> --------- Co-authored-by: Ayush Chauhan <56398566+bakayu@users.noreply.github.com>
1 parent c9900f5 commit fee80c3

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: "How I Resolve Merge Conflicts Easily"
3+
linkTitle: "Resolving Merge Conflicts"
4+
author: "Vikas"
5+
date: 2025-10-02
6+
tags: ["git", "merge", "conflict"]
7+
---
8+
9+
# How I Resolve Merge Conflicts Easily
10+
11+
Merge conflicts happen when Git can’t automatically combine changes from different people. It’s not scary — it just means Git needs you to decide which changes to keep.
12+
13+
---
14+
15+
## Steps I Follow to Resolve Conflicts
16+
17+
1. **Check the conflicted files**
18+
Git will tell you which files have conflicts after a merge or pull.
19+
20+
2. **Open the files and look for conflict markers**
21+
You’ll see things like `<<<<<<< HEAD`, `=======`, and `>>>>>>> branch-name`.
22+
23+
3. **Decide which changes to keep**
24+
You can keep your changes, the other person’s changes, or combine both.
25+
26+
4. **Remove the conflict markers**
27+
Make sure the file looks exactly how you want it after merging.
28+
29+
5. **Save the file**
30+
Confirm that it works and nothing is broken.
31+
32+
6. **Stage the resolved files**
33+
```bash
34+
git add <file-name>
35+
36+
7. **Commit the merge**
37+
git commit
38+
39+
8. **Continue working normally**
40+
Pull, push, or merge as usual.
41+
42+
Quick Tips
43+
Communicate with teammates if unsure which changes to keep.
44+
Keep commits small and pull often — fewer conflicts that way.
45+
Don’t panic — conflicts are just Git asking for guidance.
46+
47+
Resolving merge conflicts is easy once you know the steps. Follow them carefully, and Git will never feel intimidating again.
48+
49+
Happy Coding!!
50+
-Vikas :)

0 commit comments

Comments
 (0)