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 feature-branch has a commit you want on main 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" echo "
Work in progress
" >> index.html git commit -q -am "Work in progress" git checkout -q main echo "# hello-world" > README.md git add README.md git commit -q -m "Add README" # Find the hash of the commit you want (e70ed6e is "Add style.css") git log --oneline feature-branch # Apply the changes without committing, then check the status git cherry-pick e70ed6e --no-commit git status
2bcfbb0 (feature-branch) Work in progress
e70ed6e Add style.css
a2a4ab2 First commit
On branch main
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: style.css