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 changes one line git init -q echo "
Hello world!
" > index.html git add index.html git commit -q -m "First release of Hello World!" git checkout -q -b feature-branch echo "
Hello Git!
" > index.html git commit -q -am "Change the heading" git checkout -q main # Main changes the same line, so the merge stops with a conflict echo "
Hello everyone!
" > index.html git commit -q -am "Change the heading on main" git merge feature-branch # Cancel the merge and check that everything is back to normal git merge --abort git status
Auto-merging index.html
CONFLICT (content): Merge conflict in index.html
Automatic merge failed; fix conflicts and then commit the result.
On branch main
nothing to commit, working tree clean