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 remote show upstream
* remote upstream
Fetch URL: ../upstream.git
Push URL: ../upstream.git
HEAD branch: main
Remote branches:
main tracked
new-feature tracked
Local ref configured for 'git push':
main pushes to main (up to date)