Skip to content

Instantly share code, notes, and snippets.

@mindplace
Last active September 24, 2025 11:29
Show Gist options
  • Save mindplace/b4b094157d7a3be6afd2c96370d39fad to your computer and use it in GitHub Desktop.
Save mindplace/b4b094157d7a3be6afd2c96370d39fad to your computer and use it in GitHub Desktop.

Revisions

  1. mindplace revised this gist Feb 8, 2022. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -37,15 +37,15 @@ Do you need a refresher on git? [Go through Codecademy's `git` course.](https://

    The screen you should be seeing now on Github is titled **'Quick setup — if you’ve done this kind of thing before'**.

    Copy the link in the input right beneath the title, it should look something like this:
    _https://github.com/yourname/yourproject.git_
    This is the web address that your local folder will use to push its contents to the remote folder on Github.
    1. Copy the link in the input right beneath the title, it should look something like this:
    _https://github.com/yourname/yourproject.git_
    This is the web address that your local folder will use to push its contents to the remote folder on Github.

    1. Go back to your project in the terminal/command line.
    2. Go back to your project in the terminal/command line.

    2. In your terminal/command line, type `git remote add origin [copied web address]`
    3. In your terminal/command line, type `git remote add origin [copied web address]`
    Example: _git remote add origin https://github.com/yourname/yourproject.git_

    3. Push your branch to Github: `git push -u origin main`
    4. Push your branch to Github: `git push -u origin main`

    4. Go back to the folder/repository screen on Github that you just left, and refresh it. The title **'Quick setup — if you’ve done this kind of thing before'** should disappear, and you should see your files there.
    5. Go back to the folder/repository screen on Github that you just left, and refresh it. The title **'Quick setup — if you’ve done this kind of thing before'** should disappear, and you should see your files there.
  2. mindplace revised this gist Feb 8, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -38,7 +38,7 @@ Do you need a refresher on git? [Go through Codecademy's `git` course.](https://
    The screen you should be seeing now on Github is titled **'Quick setup — if you’ve done this kind of thing before'**.

    Copy the link in the input right beneath the title, it should look something like this:
    _https://github.com/yourname/yourproject.git_
    _https://github.com/yourname/yourproject.git_
    This is the web address that your local folder will use to push its contents to the remote folder on Github.

    1. Go back to your project in the terminal/command line.
  3. mindplace revised this gist Feb 8, 2022. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -8,13 +8,16 @@ Do you need a refresher on git? [Go through Codecademy's `git` course.](https://
    → Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](https://github.com/mindplace/stack-for-yourself/blob/master/docs/command_line_ui.md)

    2. Check if git is already initialized: `git status`
    If you get this error message: _fatal: Not a git repository (or any of the parent directories): .git_, that means the folder you are currently in is not being tracked by git. In that case, initialize git inside your project folder and make your first commit:
    If you get this error message: _fatal: Not a git repository (or any of the parent directories): .git_, that means the folder you are currently in is not being tracked by git. In that case, initialize git inside your project folder and make your first commit:
    ```bash
    git init
    git add .
    git commit -m "initial commit"
    ```
    → If you get another error message, read carefully what it says. Is it saying git isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where git is initialized? Google the error output to understand it, and to figure out how to fix it.
    → If you get another error message, read carefully what it says.
    * Is it saying git isn't installed on your computer by saying that the word 'git' is not recognized?
    * Is it saying that you're already in a folder or sub-folder where git is initialized?
    * **Google the error output to understand it, and to figure out how to fix it.**

    <hr>

  4. mindplace revised this gist Feb 8, 2022. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -8,8 +8,13 @@ Do you need a refresher on git? [Go through Codecademy's `git` course.](https://
    → Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](https://github.com/mindplace/stack-for-yourself/blob/master/docs/command_line_ui.md)

    2. Check if git is already initialized: `git status`
    → If you get this error message: _fatal: Not a git repository (or any of the parent directories): .git_, that means the folder you are currently in is not being tracked by git. In that case, initialize git inside your project folder by typing `git init`, then going through the process of adding and committing your project.
    → If you get another error message, read carefully what it says. Is it saying git isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where git is initialized? Google the error output to understand it, and to figure out how to fix it.
    → If you get this error message: _fatal: Not a git repository (or any of the parent directories): .git_, that means the folder you are currently in is not being tracked by git. In that case, initialize git inside your project folder and make your first commit:
    ```bash
    git init
    git add .
    git commit -m "initial commit"
    ```
    → If you get another error message, read carefully what it says. Is it saying git isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where git is initialized? Google the error output to understand it, and to figure out how to fix it.

    <hr>

  5. mindplace revised this gist Feb 8, 2022. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -4,12 +4,12 @@ Do you need a refresher on git? [Go through Codecademy's `git` course.](https://

    1. Using your terminal/command line, get inside the folder where your project files are kept:
    `cd /path/to/my/codebase`.
    → You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.
    → You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.
    → Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](https://github.com/mindplace/stack-for-yourself/blob/master/docs/command_line_ui.md)

    2. Check if git is already initialized: `git status`
    → If you get this error message: _fatal: Not a git repository (or any of the parent directories): .git_, that means the folder you are currently in is not being tracked by git. In that case, initialize git inside your project folder by typing `git init`, then going through the process of adding and committing your project.
    → If you get another error message, read carefully what it says. Is it saying git isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where git is initialized? Google the error output to understand it, and to figure out how to fix it.
    2. Check if git is already initialized: `git status`
    → If you get this error message: _fatal: Not a git repository (or any of the parent directories): .git_, that means the folder you are currently in is not being tracked by git. In that case, initialize git inside your project folder by typing `git init`, then going through the process of adding and committing your project.
    → If you get another error message, read carefully what it says. Is it saying git isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where git is initialized? Google the error output to understand it, and to figure out how to fix it.

    <hr>

  6. mindplace revised this gist Feb 8, 2022. 1 changed file with 12 additions and 17 deletions.
    29 changes: 12 additions & 17 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -1,23 +1,19 @@
    # Make sure git is tracking your project.
    ### 1. Make sure git is tracking your project locally

    Do you need a refresher on git? [Go through Codecademy's `git` course.](https://www.codecademy.com/courses/learn-git)

    1. Using your terminal/command line, get inside the folder where your project files are kept:
    `cd /path/to/my/codebase`.
    → You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.
    → Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](https://github.com/mindplace/stack-for-yourself/blob/master/docs/command_line_ui.md)

    You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.

    Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](https://github.com/mindplace/stack-for-yourself/blob/master/docs/command_line_ui.md)

    2. Check if `git` is already initialized: `git status`

    If you get this error message: `fatal: Not a git repository (or any of the parent directories): .git`, that means the folder you are currently in is not being tracked by `git`. In that case, initialize `git` inside your project folder by typing `git init`, then going through the process of adding and committing your project.

    If you get another error message, read carefully what it says. Is it saying `git` isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where `git` is initialized? Google your error and/or output to understand it, and to figure out how to fix it.

    Do you need a refresher on `git`? [Go through Codecademy's `git` course.](https://www.codecademy.com/courses/learn-git)
    2. Check if git is already initialized: `git status`
    → If you get this error message: _fatal: Not a git repository (or any of the parent directories): .git_, that means the folder you are currently in is not being tracked by git. In that case, initialize git inside your project folder by typing `git init`, then going through the process of adding and committing your project.
    → If you get another error message, read carefully what it says. Is it saying git isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where git is initialized? Google the error output to understand it, and to figure out how to fix it.

    <hr>

    # Create a remote, empty folder/repository on Github.
    ### 2. Create a remote, empty folder/repository on Github.

    1. Login to your Github account.

    @@ -29,19 +25,18 @@

    <hr>

    # Connect your local project folder to your empty folder/repository on Github.
    ### 3. Connect your local project folder to your empty folder/repository on Github.

    The screen you should be seeing now on Github is titled **'Quick setup — if you’ve done this kind of thing before'**.

    Copy the link in the input right beneath the title, it should look something like this:
    `https://github.com/yourname/yourproject.git`
    _https://github.com/yourname/yourproject.git_
    This is the web address that your local folder will use to push its contents to the remote folder on Github.

    1. Go back to your project in the terminal/command line.

    2. In your terminal/command line, type `git remote add origin [copied web address]`

    Example: `git remote add origin https://github.com/mindplace/test-repo.git`
    Example: _git remote add origin https://github.com/yourname/yourproject.git_

    3. Push your branch to Github: `git push -u origin main`

  7. mindplace revised this gist Feb 8, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -43,6 +43,6 @@ This is the web address that your local folder will use to push its contents to

    Example: `git remote add origin https://github.com/mindplace/test-repo.git`

    3. Push your branch to Github: `git push origin main`
    3. Push your branch to Github: `git push -u origin main`

    4. Go back to the folder/repository screen on Github that you just left, and refresh it. The title **'Quick setup — if you’ve done this kind of thing before'** should disappear, and you should see your files there.
  8. mindplace revised this gist Feb 8, 2022. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@

    You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.

    Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](http://stackforyourself.com/comp-sci/2016/10/01/command-line/)
    Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](https://github.com/mindplace/stack-for-yourself/blob/master/docs/command_line_ui.md)

    2. Check if `git` is already initialized: `git status`

    @@ -34,7 +34,7 @@
    The screen you should be seeing now on Github is titled **'Quick setup — if you’ve done this kind of thing before'**.

    Copy the link in the input right beneath the title, it should look something like this:
    `https://github.com/mindplace/test-repo.git`
    `https://github.com/yourname/yourproject.git`
    This is the web address that your local folder will use to push its contents to the remote folder on Github.

    1. Go back to your project in the terminal/command line.
    @@ -43,6 +43,6 @@ This is the web address that your local folder will use to push its contents to

    Example: `git remote add origin https://github.com/mindplace/test-repo.git`

    3. Push your branch to Github: `git push origin master`
    3. Push your branch to Github: `git push origin main`

    4. Go back to the folder/repository screen on Github that you just left, and refresh it. The title **'Quick setup — if you’ve done this kind of thing before'** should disappear, and you should see your files there.
  9. mindplace revised this gist Feb 7, 2017. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -34,14 +34,15 @@
    The screen you should be seeing now on Github is titled **'Quick setup — if you’ve done this kind of thing before'**.

    Copy the link in the input right beneath the title, it should look something like this:
    `https://github.com/mindplace/test-repo.git`. This is the web address that your local folder will use to push its contents to the remote folder on Github.
    `https://github.com/mindplace/test-repo.git`
    This is the web address that your local folder will use to push its contents to the remote folder on Github.

    1. Go back to your project in the terminal/command line.

    2. In your terminal/command line, type `git remote add origin [copied web address]`

    Example: `git remote add origin https://github.com/mindplace/test-repo.git`

    3. Push your branch to Github: `git push origin master`.
    3. Push your branch to Github: `git push origin master`

    4. Go back to the folder/repository screen on Github that you just left, and refresh it. The title **'Quick setup — if you’ve done this kind of thing before'** should disappear, and you should see your files there.
  10. mindplace revised this gist Feb 7, 2017. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -38,9 +38,9 @@ Copy the link in the input right beneath the title, it should look something lik

    1. Go back to your project in the terminal/command line.

    2. In your terminal/command line, type `git remote add origin [copied web address]`. Example:
    `git remote add origin https://github.com/mindplace/test-repo.git`.
    2. In your terminal/command line, type `git remote add origin [copied web address]`

    Example: `git remote add origin https://github.com/mindplace/test-repo.git`

    3. Push your branch to Github: `git push origin master`.

  11. mindplace revised this gist Feb 7, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -39,6 +39,7 @@ Copy the link in the input right beneath the title, it should look something lik
    1. Go back to your project in the terminal/command line.

    2. In your terminal/command line, type `git remote add origin [copied web address]`. Example:

    `git remote add origin https://github.com/mindplace/test-repo.git`.

    3. Push your branch to Github: `git push origin master`.
  12. mindplace revised this gist Feb 7, 2017. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -33,11 +33,13 @@

    The screen you should be seeing now on Github is titled **'Quick setup — if you’ve done this kind of thing before'**.

    Copy the link in the input right beneath the title, it should look something like this: `https://github.com/mindplace/test-repo.git`. This is the web address that your local folder will use to push its contents to the remote folder on Github.
    Copy the link in the input right beneath the title, it should look something like this:
    `https://github.com/mindplace/test-repo.git`. This is the web address that your local folder will use to push its contents to the remote folder on Github.

    1. Go back to your project in the terminal/command line.

    2. In your terminal/command line, type `git remote add origin [copied web address]`. Example: `git remote add origin https://github.com/mindplace/test-repo.git`.
    2. In your terminal/command line, type `git remote add origin [copied web address]`. Example:
    `git remote add origin https://github.com/mindplace/test-repo.git`.

    3. Push your branch to Github: `git push origin master`.

  13. mindplace revised this gist Feb 7, 2017. 1 changed file with 8 additions and 5 deletions.
    13 changes: 8 additions & 5 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,17 @@
    # Make sure git is tracking your project.

    1. Using your terminal/command line, get inside the folder where your project files are kept: `cd /path/to/my/codebase`.
    1. Using your terminal/command line, get inside the folder where your project files are kept:
    `cd /path/to/my/codebase`.

    You cannot do this simply by opening the folder normally, you must do this with the command line/terminal. Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](http://stackforyourself.com/comp-sci/2016/10/01/command-line/)
    You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.

    Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](http://stackforyourself.com/comp-sci/2016/10/01/command-line/)

    2. Check if `git` is already initialized: `git status`

    If you get this error message: `fatal: Not a git repository (or any of the parent directories): .git`, that means the folder you are currently in is not being tracked by `git`. In that case, initialize `git` inside your project folder by typing `git init`, then going through the process of adding and committing your project.

    If you get another error message, read carefully what it says. Is it saying git isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where `git` is initialized? Google your error and/or output to understand it, and to figure out how to fix it.
    If you get another error message, read carefully what it says. Is it saying `git` isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where `git` is initialized? Google your error and/or output to understand it, and to figure out how to fix it.

    Do you need a refresher on `git`? [Go through Codecademy's `git` course.](https://www.codecademy.com/courses/learn-git)

    @@ -28,7 +31,7 @@

    # Connect your local project folder to your empty folder/repository on Github.

    The screen you should be seeing now on Github is titled 'Quick setup — if you’ve done this kind of thing before'.
    The screen you should be seeing now on Github is titled **'Quick setup — if you’ve done this kind of thing before'**.

    Copy the link in the input right beneath the title, it should look something like this: `https://github.com/mindplace/test-repo.git`. This is the web address that your local folder will use to push its contents to the remote folder on Github.

    @@ -38,4 +41,4 @@ Copy the link in the input right beneath the title, it should look something lik

    3. Push your branch to Github: `git push origin master`.

    4. Go back to the folder/repository screen on Github that you just left, and refresh it. The title 'Quick setup — if you’ve done this kind of thing before' should disappear, and you should see your files there.
    4. Go back to the folder/repository screen on Github that you just left, and refresh it. The title **'Quick setup — if you’ve done this kind of thing before'** should disappear, and you should see your files there.
  14. mindplace revised this gist Feb 7, 2017. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -2,15 +2,15 @@

    1. Using your terminal/command line, get inside the folder where your project files are kept: `cd /path/to/my/codebase`.

    You cannot do this simply by opening the folder normally, you must do this with the command line/terminal. Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](http://stackforyourself.com/comp-sci/2016/10/01/command-line/)
    You cannot do this simply by opening the folder normally, you must do this with the command line/terminal. Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](http://stackforyourself.com/comp-sci/2016/10/01/command-line/)

    2. Check if `git` is already initialized: `git status`

    If you get this error message: `fatal: Not a git repository (or any of the parent directories): .git`, that means the folder you are currently in is not being tracked by `git`. In that case, initialize `git` inside your project folder by typing `git init`, then going through the process of adding and committing your project.
    If you get this error message: `fatal: Not a git repository (or any of the parent directories): .git`, that means the folder you are currently in is not being tracked by `git`. In that case, initialize `git` inside your project folder by typing `git init`, then going through the process of adding and committing your project.

    If you get another error message, read carefully what it says. Is it saying git isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where `git` is initialized? Google your error and/or output to understand it, and to figure out how to fix it.
    If you get another error message, read carefully what it says. Is it saying git isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where `git` is initialized? Google your error and/or output to understand it, and to figure out how to fix it.

    Do you need a refresher on `git`? [Go through Codecademy's `git` course.](https://www.codecademy.com/courses/learn-git)
    Do you need a refresher on `git`? [Go through Codecademy's `git` course.](https://www.codecademy.com/courses/learn-git)

    <hr>

  15. mindplace created this gist Feb 7, 2017.
    41 changes: 41 additions & 0 deletions git_and_github_instructions.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    # Make sure git is tracking your project.

    1. Using your terminal/command line, get inside the folder where your project files are kept: `cd /path/to/my/codebase`.

    You cannot do this simply by opening the folder normally, you must do this with the command line/terminal. Do you need a refresher on using your command line/terminal? [I've compiled my favorite resources here.](http://stackforyourself.com/comp-sci/2016/10/01/command-line/)

    2. Check if `git` is already initialized: `git status`

    If you get this error message: `fatal: Not a git repository (or any of the parent directories): .git`, that means the folder you are currently in is not being tracked by `git`. In that case, initialize `git` inside your project folder by typing `git init`, then going through the process of adding and committing your project.

    If you get another error message, read carefully what it says. Is it saying git isn't installed on your computer by saying that the word 'git' is not recognized? Is it saying that you're already in a folder or sub-folder where `git` is initialized? Google your error and/or output to understand it, and to figure out how to fix it.

    Do you need a refresher on `git`? [Go through Codecademy's `git` course.](https://www.codecademy.com/courses/learn-git)

    <hr>

    # Create a remote, empty folder/repository on Github.

    1. Login to your Github account.

    2. At the top right of any Github page, you should see a '+' icon. Click that, then select 'New Repository'.

    3. Give your repository a name--ideally the same name as your local project. If I'm building a travel application, its folder will be called 'travel-app' on my computer, and 'travel-app' will be the Github repository name as well.

    4. Click 'Create Repository'. The next screen you see will be important, so don't close it.

    <hr>

    # Connect your local project folder to your empty folder/repository on Github.

    The screen you should be seeing now on Github is titled 'Quick setup — if you’ve done this kind of thing before'.

    Copy the link in the input right beneath the title, it should look something like this: `https://github.com/mindplace/test-repo.git`. This is the web address that your local folder will use to push its contents to the remote folder on Github.

    1. Go back to your project in the terminal/command line.

    2. In your terminal/command line, type `git remote add origin [copied web address]`. Example: `git remote add origin https://github.com/mindplace/test-repo.git`.

    3. Push your branch to Github: `git push origin master`.

    4. Go back to the folder/repository screen on Github that you just left, and refresh it. The title 'Quick setup — if you’ve done this kind of thing before' should disappear, and you should see your files there.