软件下载
所有东西下载慢的话就可以去找镜像!
使用淘宝镜像下载:http://npm.taobao.org/mirrors/git-for-windows/
Git Bash:Unix与Linux风格的命令行,使用最多,推荐最多
Git CMD:Windows风格的命令行
Git GUI:图形界面的Git
# 列出所有本地分支
git branch
# 列出所有远程分支
git branch -r
# 新建一个分支,但依然停留在当前分支
git branch [branch-name]
# 新建一个分支,并切换到该分支
git checkout -b [branch]
# 合并指定分支到当前分支
$ git merge [branch]
# 删除分支
$ git branch -d [branch-name]
# 删除远程分支
$ git push origin --delete [branch-name]
$ git branch -dr [remote/branch]
git:
git version //查看git版本
git config --list //查看目录
git config --global user.name “用户名”;
git config --global user.email “邮箱名”;
git status //查看此时状态
git init//初始化一个新本地仓库,它在工作目录下生成一个名为.git的隐藏文件夹
git add * //*提交所有目录,使用git status查看此时的状态
git commit -m “提交次数”//第n次提交
ssh-keygen -t rsa -C “qqqqqq@qq.com” //生成秘钥
git remote add origin https://git.nowcoder.com/240038226/springboot-03-web.git //起别名
git push -u origin master//推送到远程仓库