Last active
February 17, 2018 13:43
-
-
Save sobolevn/baf940bb73eeff1d4cb27e81be4b211a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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