1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-04 10:34:55 +02:00
lazygit/test/integration/mergeConflictRevert/setup.sh
2021-06-05 22:15:51 +10:00

39 lines
474 B
Bash

#!/bin/sh
cd $1
git init
git config user.email "CI@example.com"
git config user.name "CI"
git checkout -b master
echo "test" > file1
git add .
git commit -m "test 1"
git checkout -b other
echo "test" > file2
git add .
git commit -m "test 2"
git checkout -b another
echo "test" > file3
git add .
git commit -m "test 3"
git checkout other
echo "test" > file4
git add .
git commit -m "test 4"
git merge another
echo "test" > file5
git add .
git commit -m "test 5"