oh-my-git/levels/it_IT/workflows/pr

26 lines
574 B
Text
Raw Normal View History

title = Clonare un repo
2021-01-07 17:35:08 +01:00
cards = clone commit-auto reset-hard checkout file-new branch
[description]
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 .
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
git show main:file | grep 5 && hint "Grazie!"
2021-01-07 17:35:08 +01:00
[win friend]
git show main:file | grep 5