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
# A local repository plays the part of the remote (the Try-it has no internet) git init -q --bare ../remote.git git init -q echo "# hello-world" > README.md git add README.md git commit -q -m "First commit" git remote add origin ../remote.git git push -q -u origin main # Someone else pushes a change to the remote git clone -q ../remote.git ../other echo "It now includes steps for the remote" >> ../other/README.md git -C ../other commit -q -am "Updated README.md" git -C ../other push -q # Fetch the change, but do not merge it yet git fetch -q origin git log origin/main
commit 14b2bb8da5fab8b8728d7521c7158bc8848dc7a7 (origin/main)
Author: W3Schools <test@w3schools.com>
Date: Wed Jan 15 10:00:00 2025 +0000
Updated README.md
commit 956e27eccb0a685751de1457e8318381fe3eea95 (HEAD -> main)
Author: W3Schools <test@w3schools.com>
Date: Wed Jan 15 10:00:00 2025 +0000
First commit