1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00
lazygit/test/integration/setAuthor/setup.sh
2022-06-09 19:12:20 +10:00

25 lines
357 B
Bash

#!/bin/sh
set -e
cd $1
git init
git config user.email "Author1@example.com"
git config user.name "Author1"
echo test1 > myfile1
git add .
git commit -am "myfile1"
echo test2 > myfile2
git add .
git commit -am "myfile2"
git config user.email "Author2@example.com"
git config user.name "Author2"
echo test3 > myfile3
git add .
git commit -am "myfile3"