Git 的安装、配置与学习入口
Author: CGC
Windows
Section titled “Windows”可在官方网站上下载,网站:https://git-scm.com/
也可在国内镜像源下载,网站:http://npm.taobao.org/mirrors/git-for-windows
Ubuntu
Section titled “Ubuntu”sudo apt-get updatesudo apt-get upgradesudo apt-get install gitgithub账号的注册
Section titled “github账号的注册”进入github,注册账号,网站:https://github.com/
在此处要注意记住你注册时的用户名和邮箱
git的配置
Section titled “git的配置”找到git命令行输入处
Section titled “找到git命令行输入处”方法1-Windows
Section titled “方法1-Windows”在文件夹中右键,点击 git bash ,没有也没关系,很可能会没有
方法2-Windows
Section titled “方法2-Windows”按 win+r 后输入 cmd (在默认路径下呼出)
或 在你的目标文件夹下点击上面的框,输入 cmd 然后回车可以在当前路径下呼出 cmd
方法3-Ubuntu
Section titled “方法3-Ubuntu”直接在终端中输入 git 命令即可
在命令行中输入
git config --global user.name "username"此处
username是自己的用户名
在命令行中输入
git config --global user.email "username@email.com"此处
username@email.com是自己的邮箱
在命令行中输入
git config --global --list输出内容可以检查你的配置信息是否争取,如有误可以回到前面的配置步骤进行更改
至此,git下载及配置完成