目录
1、下载git
2、安装
一路next
3、配置Git环境变量
注意安装路径根据自己安装的来
1)找到git安装路径中bin的位置,如:D:\Program Files\Git\bin
2)D:\Program Files\Git\libexec\git-core;
3)将1-2的路径添加到环境变量path当中去
4、GIT 常用命令:
显示command的helpgit help <command>
将工作文件修改提交到本地暂存区git add <file>
提交修改内容git commit "message"
将本地主分支推到远程git push -u <remoteName> <localBrachName>
克隆远程仓库git clone <url>
初始化仓库git init
创建仓库git remote add <remoteName> <url>
删除远程仓库git remote rm <name>
修改远程主机名git remote rename <remoteName> <newRemoteName>
拉取远程仓库git pull <remoteName> <localBrachName>
修改远程仓库git remote set-url --push <remoteName> <newUrl>
获取远程仓库的更新git fetch <remoteName>
获取远程仓库特定分支的更新git fetch <remoteName> <brachName>