美文网首页
Git工作流及常用命令

Git工作流及常用命令

作者: 郝开心信札 | 来源:发表于2016-12-13 11:19 被阅读25次

Git安装

直接官网下载git for windows

用户信息配置

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

git config --list

Git基本命令

work flow

git clone
git checkout -b branch_name origin/develop
    coding...
    coding...
git commit -a -m "wa"
git push origin branch_name
    merger request...
    compare
git pull
    auto merge...
    or by hand
git push

其他命令

git branch -r  # 远程分支
git branch -a  # 所有分支
git branch -d / -D  # 删除

git pull = git fetch + merge to local

git diff # 尚未保存的与暂存区的diff
git diff --staged  # 已经暂存的将要添加到下次提交的内容

git log --graph
git log --pretty=format:"%h - %an, %ar : %s"

# 例如,你提交后发现忘记了暂存某些需要的修改,可以像下面这样操作:

git commit -m 'initial commit'
git add forgotten_file
git commit --amend

相关文章

  • Git初阶:入门及常用命令

    Git初阶:入门&常用命令 讲师:××× 课程内容: 介绍版本控制以及Git Git基本概念以及工作流 Git部分...

  • Git工作流

    Git的工作流程 开发过程中常用命令行:

  • git 常用命令汇总

    一、git常用命令: 二、团队协作git操作流程: 三、git工作流 更多咨询请关注:1、Git 汇总2、VUE3...

  • 实习日记2:git代码管理

    mac:brew install git创建 常用命令:git常用命令及详解[https://blog.csdn....

  • Git

    Git原理与常用命令总结 1.Git机制 基本名词:仓库(Repository)、分支(Branch)、工作流(w...

  • 说说git(二)

    上篇文章《说说git(一)》简要的介绍了git的基本信息及要点,本篇主要说下git的工作流,git工作流是git仓...

  • GitFlow + Gitlab 工作流及规范

    GitFlow + Gitlab 工作流及规范 一、 git 命令及配置 1.Git ssh 与 gitLab配置...

  • Git学习笔记(一)

    本文主要分为以下几个方面: Git简介 Git工作流程及原理 Git基本操作 Git分支管理 Github远程仓库...

  • git常用命令及使用技巧

    git常用命令及使用技巧.md git 客户端安装 Git客户端 下载地址: https://www.git-sc...

  • Git工作流及常用命令

    Git安装 直接官网下载git for windows 用户信息配置 Git基本命令 work flow 其他命令

网友评论

      本文标题:Git工作流及常用命令

      本文链接:https://www.haomeiwen.com/subject/zcnvmttx.html