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
# Create a repository with two commits git init -q echo "
Hello world!
" > index.html git add index.html git commit -q -m "First version" echo "
A new line in our file!
" >> index.html git commit -q -a -m "Add a new line" # A local bare repository stands in for the remote (origin) git init -q --bare ../remote.git git remote add origin ../remote.git git push -q origin main # Tag the first commit v1.0 and push the tag git tag v1.0 HEAD~1 git push -q origin v1.0 git log --oneline # Move v1.0 to the last commit git tag -f v1.0 b2df489 git push --force origin v1.0
b2df489 (HEAD -> main, origin/main) Add a new line
9c59862 (tag: v1.0) First version
Updated tag 'v1.0' (was 9c59862)
To ../remote.git
+ 9c59862...b2df489 v1.0 -> v1.0 (forced update)