2021-09-14 18:06:29 +02:00
title = Clonare un repo
2021-01-07 17:35:08 +01:00
cards = clone commit-auto reset-hard checkout file-new branch
[description]
2021-09-14 18:06:29 +02:00
Il tuo amico ha un problema! Clona il repo, crea una branch chiamata "solution" e aggiusta il problema in qulla branch. Quando sei pronto crea una "Pull Request" usando `git tag pr`.
2021-01-07 17:35:08 +01:00
[setup]
rm -rf .git
[setup friend]
echo "2 + 3 = " > file
git add .
2021-09-14 18:06:29 +02:00
git commit -m "Commit iniziale"
2021-01-07 17:35:08 +01:00
[actions friend]
git ls-remote yours | grep pr && git fetch yours && git merge yours/solution
2021-09-14 18:06:29 +02:00
git show main:file | grep 5 && hint "Grazie!"
2021-01-07 17:35:08 +01:00
[win friend]
git show main:file | grep 5