2分钟在Mac上设置Git,GitHub和GitHub Desktop

In this article, I share short but clear instructions on how to get started with Git and GitHub behind the friendly user interface of GitHub Desktop, or via the command line.

在本文中,我分享了简短而清晰的说明,说明如何在GitHub Desktop友好的用户界面后或通过命令行开始使用Git和GitHub。

For a background article on how git and GitHub work, check the article over here.

有关git和GitHub如何工作的背景文章,请在此处查看该文章。

设置Git和GitHub的5个步骤 (5 steps for setting up Git and GitHub)

1.创建一个GitHub帐户 (1. Create a GitHub account)

Sign up for GitHub at github.com. It is very easy!

在github.com上注册GitHub。 这很容易!

2.选择您要使用图形化且用户友好的GitHub桌面还是命令行/终端 (2. Choose whether you want to use the graphical and user-friendly GitHub Desktop or the Command Line / Terminal)

  • Command line / Terminal is great for developers who are already at ease with the command line, or for those who will need to learn Command Line anyway.

    命令行/终端非常适合已经熟悉命令行的开发人员,或者无论如何还是需要学习命令行的开发人员。
  • GitHub Desktop is great is you want to get started quickly and easily. You can shift to the command line later if you want. Avoid if you are regularly working in a command-line environment, like Linux servers etc.

    GitHub Desktop很棒,它是您希望快速且轻松地开始使用的地方。 如果需要,您可以稍后切换到命令行。 如果您经常在命令行环境(例如Linux服务器等)中工作,请避免使用。

3a安装必要的工具[对于GitHub Desktop方法] (3a Install the necessary tools [for GitHub Desktop approach])

On the following link, download and install GitHub Desktop: https://desktop.github.com/

在以下链接上,下载并安装GitHub Desktop: https : //desktop.github.com/

2 minutes to set up Git, GitHub and GitHub Desktop on Mac
Download and install GitHub Desktop (macOS version)
下载并安装GitHub Desktop(macOS版本)

Simply download and run it and it will explain what to do itself!

只需下载并运行它,它将说明自己要做的事情!

3b安装必要的工具[用于命令行/终端方法] (3b Install the necessary tools [for Command Line / Terminal approach])

Unlike on Windows, macOS has git preinstalled. So no steps needed for the command line approach.

与Windows不同,macOS已预先安装了git。 因此,命令行方法不需要任何步骤。

4a使程序继续运行[GitHub桌面方法] (4a Getting the program going [GitHub Desktop approach])

Open GitHub Desktop via the Spotight (or any way you like).

通过Spotight(或您喜欢的任何方式)打开GitHub Desktop。

2 minutes to set up Git, GitHub and GitHub Desktop on Mac
Open GitHub Desktop
打开GitHub桌面

And login on GitHub Desktop using your GitHub user account information.

并使用您的GitHub用户帐户信息登录GitHub桌面。

2 minutes to set up Git, GitHub and GitHub Desktop on Mac
Sign in to GitHub Desktop
登录GitHub桌面

You can now use the interface of GitHub Desktop to do your git operations.

您现在可以使用GitHub Desktop的界面进行git操作。

4b使程序运行[命令行/终端方法] (4b Getting the program going [Command Line / Terminal approach])

Open a Terminal

打开终端

2 minutes to set up Git, GitHub and GitHub Desktop on Mac

You can now use the git commands to do all git operations that you’d want.

现在,您可以使用git命令执行所需的所有git操作。

2 minutes to set up Git, GitHub and GitHub Desktop on Mac

5.开始使用GitHub Desktop和/或Git命令行 (5. Starting to use GitHub Desktop and/ or Git command line)

Your journey to GitHub can now begin! The best starting point is to clone an existing repository and play around with it.

您的GitHub之旅现在就可以开始! 最好的起点是克隆一个现有的存储库,然后进行操作。

Thanks for reading this article. Don’t hesitate to leave a clap and stay tuned for more!

感谢您阅读本文。 不要犹豫拍手,敬请期待!

翻译自: https://medium.com/swlh/2-minutes-to-set-up-git-github-and-github-desktop-on-mac-b10267003d77

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值