Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
# Create a repository where two people changed index.html git init -q printf "Hello World\nWelcome to Git\n" > index.html git add index.html git commit -q -m "First version" echo "Read the docs" >> index.html git commit -q -a -m "Add a link to the docs" --author="Emma
" --date="2025-01-16 14:30" # Sam only indents every line (a formatting commit) sed -i 's/^/ /' index.html git commit -q -a -m "Indent index.html" --author="Sam
" --date="2025-01-17 09:00" echo "git blame:" git blame index.html echo "Skipping Sam's commit:" git blame --ignore-rev f47ac078 index.html
git blame:
f47ac078 (Sam 2025-01-17 09:00:00 +0000 1) Hello World
f47ac078 (Sam 2025-01-17 09:00:00 +0000 2) Welcome to Git
f47ac078 (Sam 2025-01-17 09:00:00 +0000 3) Read the docs
Skipping Sam's commit:
^cd70922 (W3Schools 2025-01-15 10:00:00 +0000 1) Hello World
^cd70922 (W3Schools 2025-01-15 10:00:00 +0000 2) Welcome to Git
2aba7c92 (Emma 2025-01-16 14:30:00 +0000 3) Read the docs