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 with a short history git init -q echo "
Hello world!
" > index.html git add index.html git commit -q -m "Initial commit" git switch -q -c feature-x echo "
" > contact.html git add contact.html git commit -q -m "Add contact form" git switch -q main echo "
About
" > about.html git add about.html git commit -q -m "Add about page" --author="Alice
" git merge -q --no-edit feature-x echo "
A new line in our file!
" >> index.html git commit -q -a -m "Updated index.html with a new line" # Change the title in index.html sed -i 's/Hello world!/Hello Git!/' index.html git diff
diff --git a/index.html b/index.html
index c57442b..ae5f439 100644
--- a/index.html
+++ b/index.html
@@ -1,2 +1,2 @@
-<h1>Hello world!</h1>
+<h1>Hello Git!</h1>
<p>A new line in our file!</p>