Skip to content

Instantly share code, notes, and snippets.

View johnmusiu's full-sized avatar
:octocat:
Coffee + Time = Code

John Musiu johnmusiu

:octocat:
Coffee + Time = Code
  • Nairobi, Kenya
  • 09:28 (UTC +03:00)
View GitHub Profile

Merge conflicts

Happens when working on a team project when two/more developers have edited the same file.
Therefore, face the conflict courageously.

Assumption: current_branch(local branch) conflicts with a base branch called base-branch

Solving a merge conflict by rebasing

  1. git pull origin --rebase base-branch. If merge conflicts persist:
  2. Fix merge conflicts by accepting either current changes, incoming changes or Accept both changes
@johnmusiu
johnmusiu / Makefile
Created March 1, 2018 19:38 — forked from h4cc/Makefile
Ubuntu 16.04 LTS Xenial Xerus - Basic packages i usually install
#
# Ubuntu 16.06 LTS (Xenial Xerus)
#
# Basic packages i usually install.
#
# Author: Julius Beckmann <github@h4cc.de>
#
# Upgraded Script from 14.04: https://gist.github.com/h4cc/7be7f940325614dc59fb
#