Skip to content

Instantly share code, notes, and snippets.

@sobolevn
Last active February 17, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sobolevn/baf940bb73eeff1d4cb27e81be4b211a to your computer and use it in GitHub Desktop.
Save sobolevn/baf940bb73eeff1d4cb27e81be4b211a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Running: `bash create_merge_conflict.sh`
set -e
PROJECT_NAME="pipenv-merge-conflicts"
# Creating project structure:
rm -rf "$PROJECT_NAME"
mkdir -p "$PROJECT_NAME"
cd "$PROJECT_NAME"
git init
# Installing initial dependencies:
pipenv install django
git add --all
git commit -m 'Initial'
# Making a new branch with `celery`:
git checkout -b feature-celery
pipenv install celery
git add --all
git commit -m 'Adds celery'
# Moving `master` forward by one commit:
git checkout master
pipenv install djangorestframework
git add --all
git commit -m 'Adds rest framework'
# Creating merge conflict:
git merge feature-celery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment