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 upstream remote (the Try-it has no internet) git init -q --bare ../upstream.git git init -q echo "# repo" > README.md git add README.md git commit -q -m "First commit" git remote add upstream ../upstream.git git push -q upstream main # Someone else pushes a new-feature branch to upstream git clone -q ../upstream.git ../other git -C ../other switch -q -c new-feature echo "New feature" > ../other/feature.txt git -C ../other add feature.txt git -C ../other commit -q -m "Add new feature" git -C ../other push -q origin new-feature # Fetch from upstream git fetch -q upstream git checkout -b new-feature upstream/new-feature
Switched to a new branch 'new-feature'
branch 'new-feature' set up to track 'upstream/new-feature'.