码迷,mamicode.com
首页 > 其他好文 > 详细

git 工作中常用命令

时间:2018-06-04 21:30:56      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:git clone   master   git log   邮箱   nbsp   工作   push   ini   checkout   

git 命令:

  git  init  : 初始化

  git  add .  :添加所有文件

  git  status  :查看状态

  若果是第一次会提示你输入你的 邮箱 和姓名:

    git  commit  -m  "这个版本修改过的一些描述"    :添加到他和远程 仓库

  git log : 查看远程常库有几个版本

  git reflog  :详细查看

  git reset  --hard   版本号  : 回滚

  git checkout  : 进入分支

  git branch 分支名  : 创建分支

  git branch -d 分支名  :删除分支

  git merge 合并分支名   : 合并分支  在master 下取合并你的另一个分支名

  git push 路径 分支名  : 上传给Git Hub

  下载:

    先克隆 :

        git clone 路径   : 克隆Git Hub的项目

        git pull 路径 分支名 : 下载到哪

        

git 工作中常用命令

标签:git clone   master   git log   邮箱   nbsp   工作   push   ini   checkout   

原文地址:https://www.cnblogs.com/jiangchunsheng/p/9135311.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!