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 first commit git init -q cat > index.html << 'EOF'
Hello World!
Hello world!
This is the first file in my new Git Repo.
EOF cat > README.md << 'EOF' # hello-world Hello World repository for the Git tutorial EOF cat > bluestyle.css << 'EOF' body { background-color: lightblue; } EOF git add --all git commit -q -m "First release of Hello World!" # Add a new line to index.html and commit it sed -i 's||\n
A new line in our file!
|' index.html git commit -q -a -m "Updated index.html with a new line" git log --stat
commit dceae35c9d24836eb69ce58671132960f2b0576e (HEAD -> main)
Author: W3Schools <test@w3schools.com>
Date: Wed Jan 15 10:00:00 2025 +0000
Updated index.html with a new line
index.html | 1 +
1 file changed, 1 insertion(+)
commit 712c39a18de4a88c3ea87acf90c6246a69009bf6
Author: W3Schools <test@w3schools.com>
Date: Wed Jan 15 10:00:00 2025 +0000
First release of Hello World!
README.md | 2 ++
bluestyle.css | 3 +++
index.html | 12 ++++++++++++
3 files changed, 17 insertions(+)