目录
菜鸟教程
Git 教程
https://www.runoob.com/git/git-tutorial.html
Git 安装配置
https://www.runoob.com/git/git-install-setup.html
Git 工作流程
https://www.runoob.com/git/git-workflow.html
Git 工作区、暂存区和版本库
https://www.runoob.com/git/git-workspace-index-repo.html
Git 创建仓库
https://www.runoob.com/git/git-create-repository.html
Git 基本操作
https://www.runoob.com/git/git-basic-operations.html
Git 分支管理
https://www.runoob.com/git/git-branch.html
Git 查看提交历史
https://www.runoob.com/git/git-commit-history.html
Git 标签
https://www.runoob.com/git/git-tag.html
Git 远程仓库(Github)
https://www.runoob.com/git/git-remote-repo.html
Git 服务器搭建
https://www.runoob.com/git/git-server.html
常用命名
git commit、git push、git pull、 git fetch、git merge 的含义与区别
- git commit:是将本地修改过的文件提交到本地库中;
- git push:是将本地库中的最新信息发送给远程库;
- git pull:是从远程获取最新版本到本地,并自动merge;
- git fetch:是从远程获取最新版本到本地,不会自动merge;
- git merge:是用于从指定的commit(s)合并到当前分支,用来合并两个分支;
$ git merge -b // 指将 b 分支合并到当前分支
git pull 相当于 git fetch + git merge。