• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

GitAlias/gitalias: Git alias commands for faster easier version control

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

GitAlias/gitalias

开源软件地址:

https://github.com/GitAlias/gitalias

开源编程语言:


开源软件介绍:

Git Alias

What is Git Alias?

Git Alias is a collection of git version control alias settings that can help you work faster and better. Git Alias provides short aliases such as s for status, command aliases such as chart and churn, lookup aliases such as whois and whatis, workflow aliases such as topic-begin for feature branch development, and more.

Setup

You can use Git Alias various ways:

Follow us

You can follow us on GitHub:

Short aliases

Short aliases are for frequent commands and options:

git add:

git branch:

git commit:

git checkout:

git cherry-pick:

  • git cp = cherry-pick
  • git cpa = cherry-pick --abort
  • git cpc = cherry-pick --continue
  • git cpn = cherry-pick -n (--no-commit)
  • git cpnx = cherry-pick -n -x (--no-commit and with a message)

git diff:

git fetch:

git grep:

  • git g = grep
  • git gg = grep with our preferred settings
  • git gn = grep -n (--line-number)

git log:

git ls-files:

git merge:

git pull:

git rebase:

git reflog:

git remote:

git revert:

git show-branch:

git submodule:

git status:

git whatchanged:

Friendly aliases

Recommended helpers:

  • git initer - Initialize a repo using our recommended way i.e. with an empty rebaseable commit
  • git cloner - Clone a repo using our recommended way i.e. recursive include of submodules
  • git pruner - Prune a repo using our recommnded way i.e. prune everything unreachable now
  • git repacker - Repack a repo our recommended way i.e. as Linus Torvalds describes
  • git optimizer - Optimize a repo using our recommended way i.e. by pruning and repacking

Quick highlights:

  • git chart - Show highlights chart of activity per author
  • git churn - Show log of files that have many changes
  • git summary - Show a summary of overview metrics

Branch names:

Branch commits:

Friendly plurals:

Undo:

Logging & reporting:

Lookups:

  • git whois - Try to figure out an author's information
  • git whatis - Try to figure out an object's information

Commit details:

Add all & edit all:

Alias helpers:

Script helpers:

  • git top - Get the top level directory name
  • git exec - Execute a shell script

Remotes:

New repos:

Hew branches:

Saving work:

  • git archive - Create an archive file of everything in the repo
  • git snapshot - Stash a snapshot of your current working tree
  • git panic - When you're worried the world is coming to an end

Misc:

Advanced aliases:

Workflow aliases

Topic branching for feature workflows:

Flow aliases:

reset & undo:

  • git reset-* - Move backwards on the commit chain; synonym for undo-*
  • git undo-* - Move backwards on the commit chain; synonym for reset-*

track & untrack:

  • git track - Start tracking from a local branch to upstream branch
  • git untrack - Stop tracking from a local branch to upstream branch

inbound & outbound:

  • git inbound - Show incoming changes compared to upstream
  • git outbound - Show outgoing changes compared to upstream

pull1 & push1:

Misc:

Tooling aliases

Use gitk:

Use other version control systems:

Use graphviz:

Index of all aliases

Tracking

  • Package: gitalias
  • Version: 28.0.0
  • Created: 2016-06-17T22:05:43Z
  • Updated: 2022-05-26T20:33:55Z
  • License: GPL-2.0-or-later or contact us for custom license
  • Contact: Joel Parker Henderson ([email protected])



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
BelledonneCommunications/bcg729: Linphone.org mirror for bcg729 (git://git.linph ...发布时间:2022-06-11
下一篇:
mirror/ncurses: ncurses Git mirror发布时间:2022-06-11
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap