1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-26 05:37:18 +02:00

30 lines
357 B
Bash
Raw Normal View History

#!/bin/sh
2022-01-26 16:46:54 +11:00
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