1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-08 10:56:22 +02:00
lazygit/test/integration/mergeConflictsResolvedExternally/setup.sh
2022-01-26 16:52:20 +11:00

30 lines
357 B
Bash

#!/bin/sh
set -e
cd $1
git init
git config user.email "CI@example.com"
git config user.name "CI"
git checkout -b master
echo "master1" > file
git add .
git commit -m "master1"
git checkout -b other
echo "other1" > file
git add .
git commit -m "other1"
git checkout master
echo "master2" > file
git add .
git commit -m "master2"
git checkout other