DEV Community

David Newberry
David Newberry

Posted on

React, Git[Hub], and VS Code for Beginners - Video 2

Previous video blog: Part 1

Video 2:
(Stream 1, Part 2)
https://youtu.be/Vwr2P7OWAWI

So now, with luck, you have a React Router app. Before diving into it, create a repository on GitHub.

  1. Signing up for GitHub is pretty straightforward.

  2. Once you have an account, you can create a new repository.

    Most of the default settings are fine. For simplicity I named it the same thing as my local repository. I did not include anything in the initial repo, because all the files I want to upload will come from the local repo.

  3. Next I tried to follow the instructs to push connect the local repository to the remote repo and push the changes, but I ran into a snag. I needed to authenticate git to GitHub.

    The solution I eventually found was to install the GitHub CLI tool, which is a separate binary from git, called gh. There were a few options for installing gh. I chose to download the binary and then run it by cd-ing into the directory and running:

    ./gh auth login
    

    The ./gh indicates that I want to run a binary in my current working directory.

    Another good option would be to first install Homebrew, and then use it to install gh. On my primary development computer I have Homebrew installed. I don't have to avail myself of it often, but I probably end up using it a few times a year to install some binary that would be hard to install otherwise.

    Once I'm authenticated with GitHub, I'm able to push my the project.

    I turn next to VS Code, starting the download.

That's it for this video. Next time, I actually open VS Code!

Next video blog: Part 3

Top comments (0)