Skip to content

Instantly share code, notes, and snippets.

@rakibulinux
Last active February 22, 2021 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakibulinux/d04ba58c0520b8ca0cd2f3b4714a7d14 to your computer and use it in GitHub Desktop.
Save rakibulinux/d04ba58c0520b8ca0cd2f3b4714a7d14 to your computer and use it in GitHub Desktop.
How to push code on GitHub
…or create a new repository on the command line
```sh
echo "# ss" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:rakibulinux/ss.git
git push -u origin main
```
…or push an existing repository from the command line
```sh
git remote add origin git@github.com:rakibulinux/ss.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