Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7a5e30c

Browse files
new notes added for 'conflict resolution study guide'
1 parent 74991d8 commit 7a5e30c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Study guide: Conflict resolution
2+
In Git, merge conflicts, or conflicts that occur when merged branches have competing commits, are not uncommon when working with a team of developers or when working with open-source software. This study guide provides you with tips for resolving merge conflicts.
3+
4+
### Tips for resolving merge conflicts
5+
Here are some tips to keep in mind when you’re resolving merge conflicts:
6+
7+
- After running Git merge, a message will appear informing that a conflict occurred on the file.
8+
- Read the error messages that imply you cannot push your local changes to GitHub, especially the remote changes with Git pull.
9+
- Use the command line or GitHub Desktop to push the change to your branch on GitHub after you make a local clone of the repository for all other types of merge conflicts.
10+
- Before merging any commits to the master branch, push it into a remote repository so that collaborators can view the code, test it, and inform you that it’s ready for merging.
11+
- Use the Git **`rebase`** command to replay the new commits on top of the new base and then merge the feature branch back into the master.
12+
13+
### Key takeaways
14+
It is important to effectively resolve merge conflicts because local changes cannot be made to Git until the merge conflicts have been locally resolved. Once all conflicts have been resolved, changes can be pushed to Git and merged in a pull request.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /