mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-18 16:20:35 +01:00
25 lines
574 B
Text
25 lines
574 B
Text
title = Clonare un repo
|
|
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`.
|
|
|
|
[setup]
|
|
|
|
rm -rf .git
|
|
|
|
[setup friend]
|
|
|
|
echo "2 + 3 = " > file
|
|
git add .
|
|
git commit -m "Commit iniziale"
|
|
|
|
[actions friend]
|
|
|
|
git ls-remote yours | grep pr && git fetch yours && git merge yours/solution
|
|
git show main:file | grep 5 && hint "Grazie!"
|
|
|
|
[win friend]
|
|
|
|
git show main:file | grep 5
|