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
# Set up a repository and a shared remote (a local bare repository stands in for GitHub) git init -q echo "
Hello world!
" > index.html git add index.html git commit -q -m "First commit" git init -q --bare ../origin.git git remote add origin ../origin.git git push -q -u origin main # A teammate pushes a commit from their own clone git clone -q ../origin.git ../teammate echo "body {color: navy;}" > ../teammate/style.css git -C ../teammate add style.css git -C ../teammate commit -q -m "Add style.css" git -C ../teammate push -q # Meanwhile, you commit your own change echo "
A new line
" >> index.html git commit -q -am "Add a new line" # Tell git pull to merge (Git asks you to choose this once) git config pull.rebase false git pull origin main git push origin main
From ../origin
* branch main -> FETCH_HEAD
a2a4ab2..e70ed6e main -> origin/main
Merge made by the 'ort' strategy.
style.css | 1 +
1 file changed, 1 insertion(+)
create mode 100644 style.css
To ../origin.git
e70ed6e..b183c9f main -> main