Commit ab18a06d authored by JackV's avatar JackV

Update repo

parent a9f40191
Pipeline #503 passed with stage
in 1 minute and 3 seconds
#!/bin/bash
# git reset examples
mkdir picnic-example
cd picnic-example
mkdir reset-example
cd reset-example
git init
git config user.name "Giacomo"
git config user.email "1vercesig@gmail.com"
......@@ -23,14 +23,41 @@ echo "* Posate in plastica" >> lista_spesa.txt
git add -A
git commit -m "Aggiungi posate/tovaglioli alla spesa"
echo "* Coltelli in plastica" >> lista_spesa.txt
touch oggetti_da_portare.txt
git add -A
git commit -m "Aggiungi posate/tovaglioli alla spesa"
echo "* Frisbee" >> oggetti_da_portare.txt
echo "* Pallone" >> oggetti_da_portare.txt
git add -A
cd ..
cp -r reset-example rebase-i-example
cd rebase-i-example
git commit -m "Aggiunta lista oggetti da portare"
cd ..
cp -r rebase-i-example rebase-example
cd rebase-example
git checkout HEAD~1
git checkout -b posti_auto
echo "Auto 1:" >> posti_auto.txt
echo "* Gianni" >> posti_auto.txt
echo "* Lucia" >> posti_auto.txt
echo "* Stefano" >> posti_auto.txt
echo "* Marta" >> posti_auto.txt
git add -A
git commit -m "Aggiunti passeggeri auto 1"
echo "Auto 2:" >> posti_auto.txt
echo "* Luca" >> posti_auto.txt
echo "* Silvia" >> posti_auto.txt
echo "* Marco" >> posti_auto.txt
echo "* Veronica" >> posti_auto.txt
git add -A
git commit -m "Aggiunti passeggeri auto 2"
git checkout -b posti_auto_2
git checkout master
cd ..
cp -r picnic-example picnic-example_2
# git filter branch
mkdir filter-index-example
......@@ -42,22 +69,22 @@ for i in {0..1000}; do
name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64 | head -n 1 > $name.txt
git add -A
git commit -m "Add $name.txt"
git commit --quiet -m "Add $name.txt"
done
mkdir old
mv *.txt old
echo "admin:passwordsegreta" > password.txt
git add -A
git commit -m "Refactoring repo"
git commit --quiet -m "Refactoring repo"
for i in {0..2000}; do
name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64 | head -n 1 > $name.txt
git add -A
git commit -m "Add $name.txt"
git commit --quiet -m "Add $name.txt"
done
cd ..
cp -r filter-index-example filter-tree-slow
cp -r filter-index-example filter-index-vs-tree
mkdir filter-tree-example
......@@ -69,13 +96,13 @@ for i in {0..100}; do
name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
convert -size 100x100 gradient: -separate -virtual-pixel tile -spread 200 -combine $name.png
git add -A
git commit -m "Add $name"
git commit --quiet -m "Add $name"
done
for i in {0..100}; do
name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
convert -size 100x100 gradient: -separate -virtual-pixel tile -spread 200 -combine $name.jpg
git add -A
git commit -m "Add $name"
git commit --quiet -m "Add $name"
done
cd ..
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment