Skip to content

Instantly share code, notes, and snippets.

@kpietru
Last active July 25, 2021 13:21
Show Gist options
  • Save kpietru/feecde2d7821e1412eaf1cf44f69924e to your computer and use it in GitHub Desktop.
Save kpietru/feecde2d7821e1412eaf1cf44f69924e to your computer and use it in GitHub Desktop.
Quick setup — if you’ve done this kind of thing before
or
Get started by creating a new file or uploading an existing file. We recommend every repository include a README, LICENSE, and .gitignore.
…or create a new repository on the command line
Optional
git clone ...
end
echo "# standards" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin git@github.com:javascript-std/standards.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin git@github.com:javascript-std/standards.git
git branch -M master
git push -u origin master
…or best tutorial
# Optional
git clone ...
# Next modify files
git add .
git commit -m "first commit"
# Only first publication for commit other return fatal
git remote add origin git@github.com:javascript-std/standards.git
# "main" is default or master optional
git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment