git简单经常使用操做命令

git 经常使用命令git

git reset  回退git add 操做服务器

git branch feature01建立本地分支 url

git push origin feature01:feature01建立远程分支rem

git push -u origin feature01 创建本地分支与远程新分支的关联it

git push origin  :feature01 左边为空,删除远程feature01分支ast

git branch -vv 查看本地分支与远程分支关系di

git merge feature01 把feature01 合并到master远程

git diff 查看与暂存区比较push

git merge branchname 这个命令把分支"branchname"合并到了当前分支里面。版本

 git reset --hard head^ 回退到上一个版本

git remote set-url --push [远程仓库名称] [更换的git服务器地址]

相关文章
相关标签/搜索