$ git init
$ git init [project-name]
$ git clone [url]
Git 的设置文件为.gitconfig,它可以在用户主目录下(全局配置),也可以在项目目录下(项目配置)。
$ git config [--global] user.name "[name]" $ git config [--global] user.email "[email address]"
$ vim ~/.gitconfig
$ git config --list