Skip to content

Instantly share code, notes, and snippets.

@lionrajkumar
Last active December 17, 2022 20:09
Show Gist options
  • Save lionrajkumar/98514d10e2a1d00751fc2c3fecfeac8f to your computer and use it in GitHub Desktop.
Save lionrajkumar/98514d10e2a1d00751fc2c3fecfeac8f to your computer and use it in GitHub Desktop.
git Clone Basic Comments

…or create a new repository on the command line

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

…or push an existing repository from the command line

git remote add origin https://github.com/lionrajkumar/samp-le.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