iTerm2终端集成git缩写意思

oh-my-zsh git

git 插件提供了许多别名和一些有用的功能。

在获取 OMZ 之前通过将 git 添加到 plugins 数组来启用它(参见 [[Plugins]])

Aliases

Alias Command
g git
ga git add
gaa git add --all
gapa git add --patch
gau git add --update
gb git branch
gba git branch -a
gbda git branch --merged | command grep -vE “^(|\smaster\s*$)” | command xargs -n 1 git branch -d
gbl git blame -b -w
gbnm git branch --no-merged
gbr git branch --remote
gbs git bisect
gbsb git bisect bad
gbsg git bisect good
gbsr git bisect reset
gbss git bisect start
gc git commit -v
gc! git commit -v --amend
gca git commit -v -a
gcam git commit -a -m
gca! git commit -v -a --amend
gcan! git commit -v -a -s --no-edit --amend
gcb git checkout -b
gcf git config --list
gcl git clone --recursive
gclean git clean -df
gcm git checkout master
gcd git checkout develop
gcmsg git commit -m
gco git checkout
gcount git shortlog -sn
gcp git cherry-pick
gcpa git cherry-pick --abort
gcpc git cherry-pick --continue
gcs git commit -S
gd git diff
gdca git diff --cached
gdt git diff-tree --no-commit-id --name-only -r
gdw git diff --word-diff
gf git fetch
gfa git fetch --all --prune
gfo git fetch origin
gg git gui citool
gga git gui citool --amend
ggf git push --force origin $(current_branch)
ghh git help
ggpull ggl
ggpur ggu
ggpush ggp
ggsup git branch --set-upstream-to = origin/$(current_branch)
gpsup git push --set-upstream origin $(current_branch)
gignore git update-index --assume-unchanged
gignored git ls-files -v | grep “1
git-svn-dcommit-push git svn dcommit && git push github master:svntrunk
gk \gitk --all --branches
gke \gitk --all $(git log -g --pretty = format:%h)
gl git pull
glg git log --stat --color
glgg git log --graph --color
glgga git log --graph --decorate --all
glgm git log --graph --max-count = 10
glgp git log --stat --color -p
glo git log --oneline --decorate --color
glog git log --oneline --decorate --color --graph
glol git log --graph --pretty = format:’%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset’ --abbrev-commit
glola git log --graph --pretty = format:’%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset’ --abbrev-commit --all
glp _git_log_prettily
gm git merge
gmom git merge origin/master
gmt git mergetool --no-prompt
gmtvim git mergetool --no-prompt --tool = vimdiff
gmum git merge upstream/master
gp git push
gpd git push --dry-run
gpoat git push origin --all && git push origin --tags
gpristine git reset --hard && git clean -dfx
gpu git push upstream
gpv git push -v
gr git remote
gra git remote add
grb git rebase
grba git rebase --abort
grbc git rebase --continue
grbi git rebase -i
grbm git rebase master
grbs git rebase --skip
grh git reset HEAD
grhh git reset HEAD --hard
grmv git remote rename
grrm git remote remove
grset git remote set-url
grt cd $(git rev-parse --show-toplevel || echo “.”)
gru git reset –
grup git remote update
grv git remote -v
gsb git status -sb
gsd git svn dcommit
gsi git submodule init
gsps git show --pretty = short --show-signature
gsr git svn rebase
gss git status -s
gst git status
gsta git stash save
gstaa git stash apply
gstd git stash drop
gstl git stash list
gstp git stash pop
gstc git stash clear
gsts git stash show --text
gsu git submodule update
gts git tag -s
gunignore git update-index --no-assume-unchanged
gunwip git log -n 1 | grep -q -c “–wip–” && git reset HEAD~1
gup git pull --rebase
gupv git pull --rebase -v
glum git pull upstream master
gvt git verify-tag
gwch git whatchanged -p --abbrev-commit --pretty = medium
gwip git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m “–wip–”

已废弃的别名

这些别名已被删除、重命名或以其他方式修改。

Alias Command Modification
gap git add --patch new alias gapa
gcl git config --list new alias gcf
gdc git diff --cached new alias gdca
gdt git difftool no replacement
ggpull git pull origin $(current_branch) new alias ggl (ggpull still exists for now though)
ggpur git pull --rebase origin $(current_branch) new alias ggu (ggpur still exists for now though)
ggpush git push origin $(current_branch) new alias ggp (ggpush still exists for now though)
gk gitk --all --branches now aliased to \gitk --all --branches
glg git log --stat --max-count = 10 now aliased to git log --stat --color
glgg git log --graph --max-count = 10 now aliased to git log --graph --color
gwc git whatchanged -p --abbrev-commit --pretty = medium new alias gwch
gwip git add -A; git ls-files --deleted -z | xargs -r0 git rm; git commit -m “–wip–” now aliased to git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m “–wip–”

Current

Command Description
current_branch Return the name of the current branch
current_repository Return the names of the current remotes
git_current_user_name Returns the user.name config value
git_current_user_email Returns the user.email config value

Wip

这些功能允许暂停分支开发并切换到另一个分支(“正在进行的工作”,或 wip)。当您想回去工作时,只需将其解开即可。

Command Description
work_in_progress Echoes a warning if the current branch is a wip
gwip Commit wip branch
gunwip Uncommit wip branch

  1. [:lower:] ↩︎

iTerm2终端集成git缩写意思相关推荐

  1. Mac iterm2 终端优化

    Mac iterm2 终端优化 oh-my-zsh 历史命令自动补全 代码高亮 oh-my-zsh oh-my-zsh地址: https://github.com/robbyrussell/oh-my ...

  2. VSCode设置命令行终端为Git

    VSCode 自带的终端 集成的终端是windows系统自带的,看着是不是很丑呢,没有色彩,关键是没有Git信息,提交前还需要确认是不是当前分支,体验大大的不好. 设置 Ctrl + , 打开设置界面 ...

  3. 超详细的Git学习记录(Git基础内容/IDEA集成Git/GitHub/Gitee/GitLab及Centos7部署GitLab)

    超详细的Git学习笔记 从B站搜到的尚硅谷视频学习了Git,记录了一下学习的内容,收获很大 学习地址: https://www.bilibili.com/video/BV1vy4y1s7k6?p=11 ...

  4. iTerm2终端工具在Mac OS上使用详解

    iTerm2终端工具在Mac OS上使用详解 一.概述 因个人工作需要,使用终端工具进行运维和开发工作,但是Mac OS 自带的终端工具使用堡垒机登录配置不了,而且使用CRT等终端工具每次登录堡垒机都 ...

  5. VSCode集成Git

    VSCode集成Git流程 一,下载git并配置环境变量 1.从git官网下载一个git安装包,官网下载地址 git下载. 2.下载完成后,一路NEXT走下去,只需注意下面这几个页面的配置,按需勾选( ...

  6. Git学习(了解版本控制、Git安装配置、Git基本理论、Git搭建、Git文件操作、使用码云或Github、IDEA集成Git,Git分支开发)

    学习git之前,我们需要先明白一个概念,版本控制! 版本控制 什么是版本控制 版本迭代,新的版本!版本管理器. 版本控制(Revision Control)是一种在开发的过程中用于管理我们对文件.目录 ...

  7. Git详细用法:Git概述 安装 常用命令 分支操作 团队协作 、GitHub、idea集成Git、idea集成GitHub、Gitee 码云、GitLab

    0 课程介绍 说明: 在公司想要使用idea集成git: 首选需要下载安装Git(查看第2章) 之后在中设置用户签名(查看3.1) 然后在idea中集成Git(查看第7章) - 0.1 学习目标 第1 ...

  8. Git基础使用(包括Git安装,idea集成git和github,gitlib)

    Git基础知识 Git 优点 安装git 基础概念 版本控制工具 集中式版本控制工具 分布式版本控制工具 构架 仓库 git文件的三种状态 git项目的三个工作区 常用命令 基础配置 为常用指令配置别 ...

  9. 在Pycharm工具中配置集成Git和GitHub

    在Pycharm工具中配置集成Git和GitHub 1.集成Git. 打开Pycharm,  点击File-->Settins-->Version Control-->Git 然后在 ...

最新文章

  1. 自定义windows下自动清除文件夹或者文件的只读属性的脚本
  2. Pandas 数据类型概述与转换实战
  3. js 将二进制流html导出excel,js 实现纯前端将数据导出excel
  4. extern “C”的作用详解
  5. 苹果手机还原网络设置会怎样_装维技巧|手机能连wifi但网不通?
  6. 【HihoCoder - 1881】特殊任务 (树形图,遍历)
  7. C#基础7:类的定义
  8. 剑指offer 树的子结构 python
  9. Latest node.js npm installation on Ubuntu 12.04
  10. Linux 内存管理之 SLUB分配器 (4):slub page大小计算方法
  11. Visio 2019 专业版 下载地址
  12. ANSYS APDL学习(5):ANSYS输入文件input file 的编写和调试方法
  13. 泰坦尼克号生命值预测
  14. 树莓派建立无线热点AP (方便直接连接遥控机器人/摄像头)
  15. vue随笔之二类型判断一
  16. 3dsMax学习笔记01_用VRayMtl材质制作玻璃材质
  17. js 删除obj对象的属性
  18. 怎么学计算机打字输入,电脑怎么学习打字
  19. 翁恺c语言视频作业题,翁恺入门C语言第2周编程练习
  20. 高斯混合模型的matlab实现

热门文章

  1. 用pandas合并两个csv表格并保存
  2. php-hyperf 使用Saber报 HTTP -4 Unknown: Linux Code 11: Resource temporarily unavailable
  3. 奇异问题之解决思路(一) npm run dev或npm run buil报错,单独运行scripts又正常?
  4. zepto和jquery
  5. IIS通过共享文件夹发布aspx程序站点(部分为原创)
  6. java小组的队名,霸气小组名称口号大全
  7. b 站账号快速升级到 Lv6:每天自动签到,观看,分享,投币视频
  8. Windows下的你画我猜 -- 告别效率低下的目录扫描方法
  9. 上班族保护颈椎有诀窍
  10. frameset和frame的使用方法