Skip to content

Instantly share code, notes, and snippets.

@andyduke
Forked from loretoparisi/github_quick_setup.md
Last active April 23, 2022 09:39
Show Gist options
  • Select an option

  • Save andyduke/7b1b3b064c84bac85871a452397c9980 to your computer and use it in GitHub Desktop.

Select an option

Save andyduke/7b1b3b064c84bac85871a452397c9980 to your computer and use it in GitHub Desktop.

Revisions

  1. andyduke revised this gist Apr 23, 2022. 1 changed file with 4 additions and 5 deletions.
    9 changes: 4 additions & 5 deletions github_quick_setup.md
    Original file line number Diff line number Diff line change
    @@ -2,19 +2,18 @@ Get started by creating a new file or uploading an existing file. We recommend e

    …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 branch -M master
    git remote add origin https://github.com/<path_to_repo>.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 remote add origin https://github.com/<path_to_repo>.git
    git branch -M master
    git push -u origin master
    ```

  2. @loretoparisi loretoparisi revised this gist May 26, 2020. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions github_quick_setup.md
    Original file line number Diff line number Diff line change
    @@ -7,8 +7,6 @@ git init
    git add README.md
    git commit -m "first commit"
    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
    ```

  3. @loretoparisi loretoparisi revised this gist May 26, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion github_quick_setup.md
    Original file line number Diff line number Diff line change
    @@ -8,12 +8,15 @@ git add README.md
    git commit -m "first commit"
    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 push an existing repository from the command line
    ```
    git remote add origin https://github.com/Musixmatchdev/etllib.git
    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
    ```

  4. @loretoparisi loretoparisi revised this gist May 26, 2020. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions github_quick_setup.md
    Original file line number Diff line number Diff line change
    @@ -2,11 +2,12 @@ Get started by creating a new file or uploading an existing file. We recommend e

    …or create a new repository on the command line
    ```
    echo "# etllib" >> README.md
    echo "# myrepo" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/Musixmatchdev/etllib.git
    git remote add origin https://github.com/loretoparisi/myrepo.git
    git pull origin master --allow-unrelated-histories
    git push -u origin master
    ```

  5. @loretoparisi loretoparisi renamed this gist May 4, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. @loretoparisi loretoparisi revised this gist May 4, 2020. 1 changed file with 12 additions and 2 deletions.
    14 changes: 12 additions & 2 deletions github_quicksetup.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,21 @@
    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 "# etllib" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/Musixmatchdev/etllib.git
    git push -u origin master

    ```

    …or push an existing repository from the command line
    ```
    git remote add origin https://github.com/Musixmatchdev/etllib.git
    git push -u origin master
    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.
  7. @loretoparisi loretoparisi created this gist May 4, 2020.
    11 changes: 11 additions & 0 deletions github_quicksetup.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    …or create a new repository on the command line
    echo "# etllib" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/Musixmatchdev/etllib.git
    git push -u origin master

    …or push an existing repository from the command line
    git remote add origin https://github.com/Musixmatchdev/etllib.git
    git push -u origin master