官术网_书友最值得收藏!

Installing Git and GitHub Desktop

GitHub Desktop provides an easy-to-use GUI to execute the GitHub workflow, in a manner that is consistent across Windows and macOS. Consistency is highly valuable when on-boarding new or junior team members or if you're not a frequent contributor to the code base.

  1. Execute the installation command:

For Windows:

PS> choco install git github-desktop -y

For macOS:

$ brew install git && brew cask install github-desktop
  1. Verify your Git installation by executing git --version and observe the version number returned

You will need to restart your Terminal after the installation of a new CLI tool. However, you can avoid relaunching your Terminal and save some time by refreshing or sourcing your environment variables. On Windows, execute refreshenv; on macOS, execute source ~/.bashrc or source ~/.zshrc.

  1. Verify your GitHub Desktop installation by launching the application
  2. Sign in to https://github.com/ on GitHub Desktop
  3. Once you have created a repository, you can launch the application from your Terminal by executing this:
$ github path/to/repo
  1. If you are already on the correct folder, you can type in the following command instead:
$ github .

For Windows, on GitHub Desktop launch, if you get stuck on the Sign in screen, close the application, relaunch it as an administrator, complete the setup, and then you will be able to use it normally, without having to launch it as an administrator again. For more information, refer to: https://desktop.github.com/.

主站蜘蛛池模板: 彰化市| 剑阁县| 巴林左旗| 崇阳县| 林芝县| 富顺县| 茂名市| 栾川县| 闻喜县| 马山县| 永福县| 句容市| 阿勒泰市| 惠水县| 富锦市| 合水县| 洛宁县| 马关县| 牙克石市| 云霄县| 乌什县| 景宁| 阳信县| 南充市| 满洲里市| 吴江市| 威信县| 新源县| 鲁山县| 无为县| 丹凤县| 纳雍县| 金堂县| 蕲春县| 民乐县| 剑川县| 灵武市| 昌黎县| 沁水县| 会同县| 紫云|