mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-12-24 20:33:19 +01:00
27 lines
664 B
Text
27 lines
664 B
Text
|
title = Sandbox with three commits
|
||
|
cards = checkout add reset-file checkout-file commit merge rebase
|
||
|
|
||
|
[setup]
|
||
|
|
||
|
echo "You wake up." > you
|
||
|
git add .
|
||
|
git commit -m "The beginning"
|
||
|
|
||
|
echo "You drink coffee." >> you
|
||
|
git commit -am "First things first"
|
||
|
|
||
|
echo "You hear a knock on the door." >> you
|
||
|
git commit -am "Who's there?"
|
||
|
|
||
|
git branch not_main
|
||
|
|
||
|
[description]
|
||
|
|
||
|
Here's a sandbox you can play around in.
|
||
|
|
||
|
You can use both the playing cards, as well as the terminal. This is a real Git terminal! Fun things to try:
|
||
|
|
||
|
- Make a commit that merges three timelines together at once!
|
||
|
- Create and delete some tags!
|
||
|
- Make a timeline that's completely independent of the rest!
|