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 where main and feature-branch both have new commits git init -q echo "
Hello world!
" > index.html git add index.html git commit -q -m "First commit" git checkout -q -b feature-branch echo "body {color: navy;}" > style.css git add style.css git commit -q -m "Add style.css" git checkout -q main echo "# hello-world" > README.md git add README.md git commit -q -m "Add README" git checkout feature-branch git rebase main # feature-branch now starts from the latest main git log --oneline --graph
Switched to branch 'feature-branch'
Successfully rebased and updated refs/heads/feature-branch.
* 2b13851 (HEAD -> feature-branch) Add style.css
* c4dea40 (main) Add README
* a2a4ab2 First commit