Skip to content

Instantly share code, notes, and snippets.

@loretoparisi
Last active March 16, 2024 07:56
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save loretoparisi/95bdcc9a59936f732dccdfd37f202dde to your computer and use it in GitHub Desktop.
Save loretoparisi/95bdcc9a59936f732dccdfd37f202dde to your computer and use it in GitHub Desktop.
Github Quick setup — if you’ve done this kind of thing before

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

echo "# myrepo" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/loretoparisi/myrepo.git
git push -u origin master

…or push an existing repository from the command line

git remote add origin https://github.com/loretoparisi/myrepo.git
git pull origin master --allow-unrelated-histories
git commit -a -m "merge"
git push -u origin master

…or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.

Copy link

ghost commented Mar 31, 2022

vohr

@louai1230
Copy link

Hello World

I'm hosted with GitHub Pages.

@Arshia-Behrad
Copy link

How to undo these codes ?

@Yordinia
Copy link

Could I comment?

@Yordinia
Copy link

Yup.. I could . Thanks for these commands.
But .. I use github desktop to publish a local repository to my github. . command isn't working!

@Mario97M
Copy link

Mario97M commented Jul 4, 2023

What about for SSH?? This is why i'm trying to find that page it had that option

@Nahiyan01
Copy link

these

How to undo these codes ?

did you find the solve i did it first now i can't do nothing . how can i undo it ?

@muhammedabookleef
Copy link

This info of quick setup never appear after make new repo how can I make it appear

@Jagguj786
Copy link

same issue for me----This info of quick setup never appear after make new repo how can I make it appear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment