# 这里以 Linux 平台为例,如果是其它版本或平台,只需简单替换 VERSION 变量和对应文件名前缀即可。 VERSION="2.12.8" wget https://github.com/github/hub/releases/download/v$VERSION/hub-linux-amd64-$VERSION.tgz tar xzvf hub-linux-amd64-$VERSION.tgz sudo ./hub-linux-amd64-$VERSION/install
These are common Git commands used in various situations:
start a working area (see also: git help tutorial) clone Clone a repository into a new directory # 使用 hub clone 命令,可以省去指定 GitHub 端仓库的部分。 init Create an empty Git repository or reinitialize an existing one
work on the current change (see also: git help everyday) add Add file contents to the index mv Move or rename a file, a directory, or a symlink reset Reset current HEAD to the specified state rm Remove files from the working tree and from the index
examine the history and state (see also: git help revisions) bisect Use binary search to find the commit that introduced a bug grep Print lines matching a pattern log Show commit logs show Show various types of objects status Show the working tree status
grow, mark and tweak your common history branch List, create, or delete branches checkout Switch branches or restore working tree files commit Record changes to the repository diff Show changes between commits, commit and working tree, etc merge Join two or more development histories together rebase Reapply commits on top of another base tip tag Create, list, delete or verify a tag object signed with GPG
collaborate (see also: git help workflows) fetch Download objects and refs from another repository pull Fetch from and integrate with another repository or a local branch push Update remote refs along with associated objects # hub push 命令支持通知向多个远程仓库进行 push 操作。
'git help -a' and 'git help -g' list available subcommands and some concept guides. See 'git help <command>' or 'git help <concept>' to read about a specific subcommand or concept.
These GitHub commands are provided by hub:
browse Open a GitHub page in the default browser ci-status Show the CI status of a commit compare Open a compare page on GitHub create Create this repository on GitHub and add GitHub as origin # hub create 命令适用于本地已经创建仓库,但 GitHub 端没有创建仓库的情况。 fork Make a fork of a remote repository on GitHub and add as remote # hub fork 命令的功能与 GitHub 页面的 Fork 按钮相同。 issue List or create issues pr Work with pull requests pull-request Open a pull request on GitHub # hub pull-request 命令为我们提供了创建 Pull Request 的功能,利用这个命令可以在不访问 GitHub 页面的情况下创建 Pull Request。 release List or create releases
$ git diff diff --git a/SystemPreferences/README.md b/SystemPreferences/README.md index a148d74..a7ff953 100644 --- a/SystemPreferences/README.md +++ b/SystemPreferences/README.md @@ -1,7 +1,7 @@ # System Preferences First thing you need to do, on any OS actually, is update the system! For that: **Apple Icon > Software Update.** -Also upgrade your OS incase you want to work on the latest OS. Mavericks is a free upgrade so please check that. +Also upgrade your OS incase you want to work on the latest OS. Yosemite is a free upgrade so please check that. If this is a new computer, there are a couple tweaks you would like to make to the System Preferences. Feel free to follow these, or to ignore them, depending on your personal preferences.