Skip to content

Instantly share code, notes, and snippets.

@nickforce
Last active July 19, 2023 05:27
Show Gist options
  • Select an option

  • Save nickforce/da8b67ed74615972e1da3f11271ba994 to your computer and use it in GitHub Desktop.

Select an option

Save nickforce/da8b67ed74615972e1da3f11271ba994 to your computer and use it in GitHub Desktop.
New repo

…or create a new repository on the command line

echo "# test222" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/nickforce/test222.git
git push -u origin main

…or push an existing repository from the command line

git remote add origin https://github.com/nickforce/test222.git
git branch -M main
git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment