Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

😎 A curated list of add-ons that extend/enhance the git CLI.

NotificationsYou must be signed in to change notification settings

githubFeature/awesome-git-addons

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

A curated list of add-ons that extend/enhance the git CLI.

$ git blaSomething awesome happens!

“You don’t have to know everything. You simply need to know where to find it when necessary.” (John Brunner)

Inspired by theawesome list thing.

Note: Some of the commands may not work out of the box. You might need to run a post install script to add aliases or add them manually.

Table of Contents

squash

$ git squash fixed-cursor-styling "Fixed cursor styling"$ git squash 95b7c52$ git squash HEAD~3

summary

$ git summary project  : git repo age : 10 years active   : 11868 days commits  : 40530 files    : 2825 authors  : 15401Junio C Hamano                  38.0%  1844Jeff King                       4.5%

line-summary

$ git line-summary project  : gulp lines    : 3900 authors  : 1040 Contra                    26.7%  828 Sindre Sorhus             21.2%

effort

$ git effort  file                                          commits    active days  .gitattributes............................... 3          3  .gitignore................................... 265        226  .mailmap..................................... 47         40

authors

$ git authorsContra <contra@maricopa.edu>Eric Schoffstall <contra@wearefractal.com>Sindre Sorhus <sindresorhus@gmail.com>

changelog

$ git changelog## 3.9.0- add babel support- add transpiler fallback support- add support for some renamed transpilers (livescript, etc)- add JSCS- update dependecies (liftoff, interpret)- documentation tweaks## 3.8.11- fix node 0.12/iojs problems- add node 0.12 and iojs to travis- update dependencies (liftoff, v8flags)- documentation tweaks

commits-since

$ git commits-since yesterday... changes since yesterdayTJ Holowaychuk - Fixed readme

count

$ git counttotal 855

create-branch

$ git create-branch developmentTotal 3 (delta 0), reused 0 (delta 0)To https://github.com/tj/git-extras.git * [new branch]      HEAD -> developmentBranch development set up to track remote branch development from origin.Switched to a new branch 'development'

delete-branch

$ git delete-branch integrationDeleted branch integration (was bfb8522).Deleted remote-tracking branch remote/integration (was bfb8522).To git@github.com:remote/gulp.git - [deleted]         integration

delete-submodule

$ git delete-submodule lib/foo

delete-tag

$ git delete-tag v0.1.1Deleted tag 'v0.1.1' (was 9fde751)To https://github.com/tj/git-extras.git - [deleted]         v0.1.1

delete-merged-branches

$ git delete-merged-branchesDeleted feature/themes (was c029ab3).Deleted feature/live_preview (was a81b002).Deleted feature/dashboard (was 923befa).

fresh-branch

$ git fresh-branch docsRemoving .DS_StoreRemoving .editorconfigRemoving .gitignore

guilt

$ git guilt `git log --until="3 weeks ago" --format="%H" -n 1` HEADPaul Schreiber                +++++++++++++++++++++++++++++++++++++++++++++(349)spacewander                   +++++++++++++++++++++++++++++++++++++++++++++(113)Mark Eissler                  ++++++++++++++++++++++++++

merge-into

$ git merge-into masterSwitched to branch 'master'Your branch is up-to-date with 'origin/master'.Updating 9fde751..e62edfaFast-forward 234 | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 234Switched to branch 'development'

graft

$ git graft developmentYour branch is up-to-date with 'origin/master'.Merge made by the 'recursive' strategy. package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Deleted branch development (was 64b3563).

alias

$ git alias last "cat-file commit HEAD"$ git aliaslast = cat-file commit HEAD

ignore

$ git ignore build "*.o" "*.log"... added 'build'... added '*.o'... added '*.log'

info

$ git info    ## Remote URLs:    origin              git@github.com:sampleAuthor/git-extras.git (fetch)    origin              git@github.com:sampleAuthor/git-extras.git (push)    ## Remote Branches:    origin/HEAD -> origin/master    origin/myBranch    ## Local Branches:    myBranch    * master    ## Most Recent Commit:    commit e3952df2c172c6f3eb533d8d0b1a6c77250769a7    Author: Sample Author <sampleAuthor@gmail.com>    Added git-info command.    Type 'git log' for more commits, or 'git show <commit id>' for full commit details.    ## Configuration (.git/config):    color.diff=auto    color.status=auto

fork

$ git fork LearnBoost/expect.js

release

$ git release 0.1.0... releasing 0.1.0On branch developmentYour branch is up-to-date with 'origin/development'.nothing to commit, working directory cleanTotal 0 (delta 0), reused 0 (delta 0)To https://github.com/tj/git-extras.git   9fde751..e62edfa  master -> masterCounting objects: 1, done.Writing objects: 100% (1/1), 166 bytes | 0 bytes/s, done.Total 1 (delta 0), reused 0 (delta 0)To https://github.com/tj/git-extras.git * [new tag]         0.1.0 -> 0.1.0... complete

contrib

$ git contrib visionmediavisionmedia (18):  Export STATUS_CODES  Replaced several Array.prototype.slice.call() calls with Array.prototype.unshift.call()  Moved help msg to node-repl

repl

$ git replgit> ls-filesHistory.mdMakefile

undo

$ git undoUnstaged changes after reset:Mpackage.jsonMreadme.md

gh-pages

$ git gh-pages

scp

$ git scp staging HEAD

setup

$ git setupInitialized empty Git repository in /GitHub/test/gulp/.git/[master (root-commit) 9469797] Initial commit 69 files changed, 3900 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 .jscsrc

touch

$ git touch index.js

obliterate

$ git obliterate secrets.jsonRewrite 2357a4334051a6d1733037406ab7538255030d0b (1/981)rm 'secrets.json'Rewrite b5f62b2746c23150917d346bd0c50c467f01eb03 (2/981)rm 'secrets.json'Rewrite 3cd94f3395c2701848f6ff626a0a4f883d8a8433 (3/981)rm 'secrets.json'

feature|refactor|bug|chore

$ git feature dependencies$ git feature finish dependenciesAlready up-to-date.Deleted branch feature/dependencies (was f0fc4c7).Deleted remote-tracking branch origin/feature/dependencies (was f0fc4c7).To git@github.com:stevemao/gulp.git - [deleted]         feature/dependencies

local-commits

$ git local-commitscommit 5f00a3c1bb71876ebdca059fac96b7185dea5467Merge: 7ad3ef9 841af4eAuthor: Blaine Bublitz <blaine@iceddev.com>Date:   Thu Aug 20 11:35:15 2015 -0700    Merge pull request #1211 from JimiHFord/patch-1    Update guidelines.mdcommit 841af4ee7aaf55b505354d0e86d7fb876d745e26Author: Jimi Ford <JimiHFord@users.noreply.github.com>Date:   Thu Aug 20 11:55:38 2015 -0400    Update guidelines.md    fixed typo

archive-file

$ git archive-fileBuilding archive on branch "master"Saved to "gulp.v3.9.0-36-g47cb6b0.zip" ( 60K)

missing

$ git missing master< d14b8f0 only on current checked out branch> 97ef387 only on master

lock

$ git lock config/database.yml

locked

$ git lockedconfig/database.yml

unlock

$ git unlock config/database.yml

reset-file

$ git reset-file README.md HEAD^Reset 'README.md' to HEAD^

pr

$ git pr 226From https://github.com/tj/git-extras * [new ref]       refs/pulls/226/head -> pr/226Switched to branch 'pr/226'

root

$ git root/GitHub/git

delta

$ git deltaREADME.md

merge-repo

$ git merge-repo git@github.com:tj/git-extras.git master .git fetch git@github.com:tj/git-extras.git masterwarning: no common commitsremote: Counting objects: 3507, done.remote: Compressing objects: 100% (5/5), done.remote: Total 3507 (delta 1), reused 0 (delta 0), pack-reused 3502Receiving objects: 100% (3507/3507), 821.12 KiB | 286.00 KiB/s, done.Resolving deltas: 100% (1986/1986), done.From github.com:tj/git-extras * branch            master     -> FETCH_HEADAdded dir 'git-merge-repo.E95m0gj'No local changes to save

psykorebase

$ git psykorebase master$ git psykorebase --continue$ git psykorebase master feature

flow init

$ git flow initWhich branch should be used for bringing forth production releases?   - changelog   - masterBranch name for production releases: [master]Which branch should be used for integration of the "next release"?   - changelogBranch name for "next release" development: [master]Production and integration branches should differ.

flow feature

$ git flow feature$ git flow feature start awesome-feature$ git flow feature finish awesome-feature$ git flow feature delete awesome-feature$ git flow feature publish awesome-feature$ git flow feature pull remote awesome-feature

flow release

$ git flow release$ git flow release start awesome-release$ git flow release finish awesome-release$ git flow release delete awesome-release

flow hotfix

$ git flow hotfix$ git flow hotfix start awesome-release$ git flow hotfix finish awesome-release$ git flow hotfix delete awesome-release

flow support

$ git flow support
$ git upFetching origin4.0       fast-forwarding...changelog ahead of upstreammaster    fast-forwarding...returning to 4.0

clone

$ git clone schacon/ticgit> git clone git://github.com/schacon/ticgit.git$ git clone -p schacon/ticgit> git clone git@github.com:schacon/ticgit.git$ git clone resque> git clone git@github.com/YOUR_USER/resque.git

remote add

$ git remote add rtomayko> git remote add rtomayko git://github.com/rtomayko/CURRENT_REPO.git$ git remote add -p rtomayko> git remote add rtomayko git@github.com:rtomayko/CURRENT_REPO.git$ git remote add origin> git remote add origin git://github.com/YOUR_USER/CURRENT_REPO.git

fetch

$ git fetch mislav> git remote add mislav git://github.com/mislav/REPO.git> git fetch mislav$ git fetch mislav,xoebus> git remote add mislav ...> git remote add xoebus ...> git fetch --multiple mislav xoebus

cherry-pick

$ git cherry-pick https://github.com/mislav/REPO/commit/SHA> git remote add -f --no-tags mislav git://github.com/mislav/REPO.git> git cherry-pick SHA$ git cherry-pick mislav@SHA> git remote add -f --no-tags mislav git://github.com/mislav/CURRENT_REPO.git> git cherry-pick SHA$ git cherry-pick mislav@SHA> git fetch mislav> git cherry-pick SHA

am

$ git am https://github.com/github/hub/pull/55[ downloads patch via API ]> git am /tmp/55.patch$ git am --ignore-whitespace https://github.com/davidbalbert/hub/commit/fdb9921[ downloads patch via API ]> git am --ignore-whitespace /tmp/fdb9921.patch

apply

$ git apply https://gist.github.com/8da7fb575debd88c54cf[ downloads patch via API ]> git apply /tmp/gist-8da7fb575debd88c54cf.txt

fork

$ git fork[ repo forked on GitHub ]> git remote add -f YOUR_USER git@github.com:YOUR_USER/CURRENT_REPO.git

pull-request

$ git pull-request[ opens text editor to edit title & body for the request ][ opened pull request on GitHub for "YOUR_USER:feature" ]

checkout

$ git checkout https://github.com/github/hub/pull/73> git remote add -f --no-tags -t feature mislav git://github.com/mislav/hub.git> git checkout --track -B mislav-feature mislav/feature

merge

$ git merge https://github.com/github/hub/pull/73> git fetch git://github.com/mislav/hub.git +refs/heads/feature:refs/remotes/mislav/feature> git merge mislav/feature --no-ff -m 'Merge pull request #73 from mislav/feature...'

create

$ git create[ repo created on GitHub ]> git remote add origin git@github.com:YOUR_USER/CURRENT_REPO.git

init

$ git init -g> git init> git remote add origin git@github.com:YOUR_USER/REPO.git

push

$ git push origin,staging,qa bert_timeout> git push origin bert_timeout> git push staging bert_timeout> git push qa bert_timeout

browse

$ git browse> open https://github.com/YOUR_USER/CURRENT_REPO

compare

$ git compare refactor> open https://github.com/CURRENT_REPO/compare/refactor

submodule

$ git submodule add wycats/bundler vendor/bundler> git submodule add git://github.com/wycats/bundler.git vendor/bundler

ci-status

$ git ci-statussuccess
$ git remote add production "user@example.com:/apps/mynewapp"$ git deploy setup -r "production"$ git deploy init$ git push production master

68747470733a2f2f7261772e6769746875622e636f6d2f6b34727468696b2f6769742d63616c2f6d61737465722f73637265656e73686f74732f696d67322e706e67

$ git hooks --install$ git hooksGit hooks ARE installed in this repository.Listing User, Project, and Global hooks:---/Users/stevemao/.git_hooks:/GitHub/git-hooks/git_hooks:commit-msg/signed-off-by - Checks commit message for presence of Signed-off-by line.pre-commit/bsd - Check for the BSD license./GitHub/git-hooks/.githooks:

imerge start

$ git imerge start --name=next --goal=merge --first-parent 4.0Attempting automerge of 1-1...success.Attempting automerge of 1-29...success.Attempting automerge of 1-44...success.Attempting automerge of 1-51...success.

imerge merge

$ git imerge merge 4.0Attempting automerge of 1-1...success.Attempting automerge of 1-6...success.Attempting automerge of 1-9...success.Attempting automerge of 1-10...success.

imerge rebase

$ git imerge rebase 4.0The following commits on the to-be-merged branch are merge commits:    8e4931ae15971a14897cf347ac50b7d7fe125ac4    d7c772142ce663a20210db73d9ad17cc8d59e0d6    856df83c77b33029d2ddfb8eecd08efedeadc027

imerge continue

$ git add --all$ git commit[imerge/next e442618] imerge 'next': manual merge 10-26$ git imerge continueMerge has been recorded for merge 10-26.Attempting automerge of 10-27...success.Attempting automerge of 10-42...failure.Attempting automerge of 10-34...failure.Attempting automerge of 10-30...success.Recording autofilled block MergeState('next', tip1='master', tip2='4.0', goal='merge')[18:20,34:58].Merge is complete!

imerge finish

$ git imerge finishPrevious HEAD position was fcbe161... imerge 'next': automatic merge 19-57Switched to branch 'next'[next 23362e6] Merge 4.0 into master (using imerge) Date: Wed Sep 2 10:59:56 2015 +1000

imerge diagram

$ git imerge diagram*********************????????.?????????|*????????.?????????|*????????.?????????|*????????...-------+*????????.*|#???????

imerge list

$ git imerge list* next

imerge init

$ git imerge init --name=next --goal=merge --first-parent 4.0

imerge record

$ git imerge recordMerge has been recorded for merge 10-26.Attempting automerge of 10-27...success.Attempting automerge of 10-42...failure.Attempting automerge of 10-34...failure.

imerge autofill

$ git imerge autofillAttempting automerge of 1-1...success.Attempting automerge of 1-29...success.Attempting automerge of 1-44...success.

imerge simplify

$ git imerge simplifyPrevious HEAD position was 4d19598... imerge 'next': automatic merge 20-57Switched to branch 'next'[next 6c308aa] Merge 4.0 into master (using imerge) Date: Wed Sep 2 13:37:31 2015 +1000

imerge remove

$ git imerge remove

imerge reparent

$ git imerge reparent67ebc0e6517ac791de6699453b71d2c7fd81ffcd

Initialize issue repository

$ git issue initInitialized empty Issues repository in /home/dds/src/gi/.issues$ git issue new -s 'New issue entered from the command line'Added issue e6a95c9

Create a new issue (opens editor window)

$ git issue newAdded issue 7dfa5b7

List open issues

$ git issue list7dfa5b7 An issue entered from the editore6a95c9 New issue entered from the command line

Add an issue comment (opens editor window)

$ git issue comment e6a95c9Added comment 8c0d5b3

Add tag to an issue

$ git issue tag e6a9 urgentAdded tag urgent

Add two more tags

$ git issue tag e6a9 gui crashAdded tag guiAdded tag crash

Remove a tag

$ git issue tag -r e6a9 urgentRemoved tag urgent

Assign issue

$ git issue assign e6a9 joe@example.comAssigned to joe@example.com

Add issue watcher

$ git issue watcher e6a9 jane@example.comAdded watcher jane@example.com

List issues tagged as gui

$ git issue list guie6a95c9 New issue entered from the command line

Push issues repository to a server

$ git issue git remote add origin git@github.com:dspinellis/gi-example.git$ git issue git push -u origin masterCounting objects: 60, done.Compressing objects: 100% (50/50), done.Writing objects: 100% (60/60), 5.35 KiB | 0 bytes/s, done.Total 60 (delta 8), reused 0 (delta 0)To git@github.com:dspinellis/gi-example.git * [new branch]      master -> masterBranch master set up to track remote branch master from origin.

Clone issues repository from server

$ git issue clone git@github.com:dspinellis/gi-example.git my-issuesCloning into '.issues'...remote: Counting objects: 60, done.remote: Compressing objects: 100% (42/42), done.remote: Total 60 (delta 8), reused 60 (delta 8), pack-reused 0Receiving objects: 100% (60/60), 5.35 KiB | 0 bytes/s, done.Resolving deltas: 100% (8/8), done.Checking connectivity... done.Cloned git@github.com:dspinellis/gi-example.git into my-issues

List open issues

$ git issue list7dfa5b7 An issue entered from the editore6a95c9 New issue entered from the command line

Create new issue

$ git issue new -s 'Issue added on another host'Added issue abc9adc

Push changes to server

$ git issue pushCounting objects: 7, done.Compressing objects: 100% (6/6), done.Writing objects: 100% (7/7), 767 bytes | 0 bytes/s, done.Total 7 (delta 0), reused 0 (delta 0)To git@github.com:dspinellis/gi-example.git   d6be890..740f9a0  master -> master

Show issue added on the other host

$ git issue show 7dfa5b7issue 7dfa5b7f4591ecaa8323716f229b84ad40f5275bAuthor: Diomidis Spinellis <dds@aueb.gr>Date:   Fri, 29 Jan 2016 01:03:24 +0200Tags:   open    An issue entered from the editor    Here is a longer description.

Show issue and comments

$ git issue show -c e6a95c9issue e6a95c91b31ded8fc229a41cc4bd7d281ce6e0f1Author: Diomidis Spinellis <dds@aueb.gr>Date:   Fri, 29 Jan 2016 01:03:20 +0200Tags:   open urgent gui crashWatchers:       jane@example.comAssigned-to: joe@example.com    New issue entered from the command linecomment 8c0d5b3d77bf93b937cb11038b129f927d49e34aAuthor: Diomidis Spinellis <dds@aueb.gr>Date:   Fri, 29 Jan 2016 01:03:57 +0200    First comment regarding the issue.

Pull in remote changes (on the original host)

$ git issue pullremote: Counting objects: 7, done.remote: Compressing objects: 100% (6/6), done.remote: Total 7 (delta 0), reused 7 (delta 0), pack-reused 0Unpacking objects: 100% (7/7), done.From github.com:dspinellis/gi-example   d6be890..740f9a0  master     -> origin/masterUpdating d6be890..740f9a0Fast-forward issues/ab/c9adc61025a3cb73b0c67470b65cefc133a8d0/description | 1 + issues/ab/c9adc61025a3cb73b0c67470b65cefc133a8d0/tags        | 1 + 2 files changed, 2 insertions(+) create mode 100644 issues/ab/c9adc61025a3cb73b0c67470b65cefc133a8d0/description create mode 100644 issues/ab/c9adc61025a3cb73b0c67470b65cefc133a8d0/tags

List open issues

$ git issue list7dfa5b7 An issue entered from the editorabc9adc Issue added on another hoste6a95c9 New issue entered from the command line

Sub-command auto-completion

$ git issue [Tab]assign   clone    comment  git      init     log      pull     show     watcherattach   close    edit     help     list     new      push     tag

Issue Sha auto-completion

$ git issue show [Tab]7dfa5b7 - An issue entered from the editore6a95c9 - New issue entered from the command line
$ git lfs track "*.mp3"Tracking *.mp3$ git lfs track "*.zip"Tracking *.zip$ git lfs trackListing tracked paths    *.mp3 (.gitattributes)    *.zip (.gitattributes)$ git lfs untrack "*.zip"Untracking *.zip$ git lfs trackListing tracked paths    *.mp3 (.gitattributes)
$ git now[master 1bd9ce8] [from now] 2015/08/27 10:39:10 1 file changed, 1 insertion(+), 1 deletion(-)$ git logcommit 1bd9ce878a76140f7db95afd9cfd4d7befbc7243Author: Steve Mao <maochenyan@gmail.com>Date:   Thu Aug 27 10:39:10 2015 +1000    [from now] 2015/08/27 10:39:10    diff --git a/package.json b/package.json    index 8768569..540523a 100644    --- a/package.json    +++ b/package.json    @@ -1,7 +1,7 @@     {       "name": "gulp",       "description": "The streaming build system",    -  "version": "3.9.0",    +  "version": "3.10.0",       "homepage": "http://gulpjs.com",       "repository": "gulpjs/gulp",       "author": "Fractal <contact@wearefractal.com> (http://wearefractal.com/)",

multi

$ git multi--------------------------------------------------------------------------------Executing git status -s--------------------------------------------------------------------------------chalk: M package.jsongulp: D index.js

relation

$ git relation origin/4.0HEAD and origin/4.0 DIVERGED, common point is 657213a52d5e9c19b85df6a42f76341a98c08ae8Commits from 657213a52d5e9c19b85df6a42f76341a98c08ae8 to HEAD:Error retrieving log 657213a52d5e9c19b85df6a42f76341a98c08ae8..HEAD

old-branches

$ git old-branches -d 10Branch 4.0 is older than 10 days (139.86)!

recent

$ git recent      3.64 days: master     11.63 days: dev
$ git test -v4.0 ^origin/4.0 ^origin/master will test        2 commitsiter commit  tree    result0000 57af4b0 f5ef0d8 pass (cached)0001 10ed389 434370f pass

branches

$ git branches   4.0                        (published)   development                (unpublished)   everything-is-not-awesome  (published)*  master                     (published)   old-master                 (published)

sync

$ git syncPulling commits from the server.First, rewinding head to replay your work on top of it...Fast-forwarded 4.0 to origin/4.0.Pushing commits to the server.

switch

$ git switch masterSaving local changes.Saved working directory and index state On developement: Legit: stashing before switching branches.HEAD is now at f0fc4c7 Merge branch 'development'Switching to master.Your branch is up-to-date with 'origin/master'.Restoring local changes.On branch masterYour branch is up-to-date with 'origin/master'.Changes not staged for commit:  (use "git add <file>..." to update what will be committed)  (use "git checkout -- <file>..." to discard changes in working directory)modified:   package.jsonno changes added to commit (use "git add" and/or "git commit -a")Dropped stash@{0} (86f5dc9066ff9f69c01c77e2f5a55643ad19f8f2)

publish

$ git publish   4.0                        (published)   changelog                  (published)   everything-is-not-awesome  (published)*  master                     (unpublished)Branch None not found, using current branch masterPublishing master.Branch master set up to track remote branch master from origin.

unpublish

$ git unpublish masterUnpublishing master.
$ git when-merged a2c9e695ecf3600f21fa731e705fd1a0503632d9refs/heads/master                      5a2ec1b1a6633f830bd4a2b1daab578c062e6975$ git when-merged HEADrefs/heads/master                      Commit is directly on this branch.
$ git playback README.md

$ git branch-status 4.0       [57 ahead and 38 behind master]    [up to date with origin/4.0] master    [current branch]                   [1 ahead of origin/master]
$ git open> open https://github.com/REMOTE_ORIGIN_USER/CURRENT_REPO/tree/CURRENT_BRANCH$ git open upstream> open https://github.com/REMOTE_UPSTREAM_USER/CURRENT_REPO/tree/CURRENT_BRANCH$ git open upstream master> open https://github.com/REMOTE_UPSTREAM_USER/CURRENT_REPO/tree/master
$ git my+------------------------------------------------------------------------------+| your name's remote branches in git@repo:repopath/reponame.git                |+------------------------------------------------------------------------------+   local copy?  in master?  branch name  ................[merged]. EC-242  .....[local]....[merged]. commonjs-lazyload  .....[local]............. enqueue-gpt  ......................... defunct-ios-app-nag  .....[local]............. factor-bundles
$ git ink• enqueue-gpt ........................................... 2015-08-31• factor-bundles ........................................ 2015-10-14    - Pull out more modules into node_modules    - Works but does not provide any gains• hbsfy ................................................. 2015-10-21✓ master ................................................ 2015-10-22• nda-ads4 .............................................. 2015-10-22• remove-equalize_content_height ........................ 2015-10-21• remove-exorcise ....................................... 2015-10-21    - Need to DRY up exorcise function    - Does not map properly when uglified    - Need to undo postCSS mapping changes• rm-convert_dates-order ................................ 2015-10-22• sass-lint ............................................. 2015-10-14    - module does not work
$ git recursive-blame version package.jsonCommit: 247479d017f138c26be27c64a0ce27f5f21fc0afAuthor: Jeff Cross <middlefloor@gmail.com>Date:   Tue Oct 13 15:58:13 2015 -0700 (7 weeks ago)Path:   package.jsonMatch:  1 of 1    chore(release): bump angular version to alpha.421) {2)   "name": "angular",3)   "version": "2.0.0-alpha.42",4)   "branchPattern": "2.0.*",5)   "description": "Angular 2 - a web framework for modern web apps",6)   "homepage": "https://github.com/angular/angular",7)   "bugs": "https://github.com/angular/angular/issues",Next action [r,n,p,c,d,q,?]? rCommit: bb9d299b3860f6d579192828451ccd7ace70e1d8Author: Igor Minar <igor@angularjs.org>Date:   Tue Oct 13 12:28:03 2015 -0700 (7 weeks ago)Path:   package.jsonMatch:  1 of 1    chore(release): bump angular version to alpha.411) {2)   "name": "angular",3)   "version": "2.0.0-alpha.41",4)   "branchPattern": "2.0.*",5)   "description": "Angular 2 - a web framework for modern web apps",6)   "homepage": "https://github.com/angular/angular",7)   "bugs": "https://github.com/angular/angular/issues",
$ git hyper-blame -i 3ddda43c ipsum.txtc6eb3bfa (lorem 2014-08-11 23:15:57 +0000  1) LOREM IPSUM DOLOR SIT AMET, CONSECTETUR134200d1 (lorem 2014-04-10 08:54:46 +0000 2*) ADIPISCING ELIT, SED DO EIUSMOD TEMPORa34a1d0d (ipsum 2014-04-11 11:25:04 +0000 3*) INCIDIDUNT UT LABORE ET DOLORE MAGNA134200d1 (lorem 2014-04-10 08:54:46 +0000 4*) ALIQUA. UT ENIM AD MINIM VENIAM, QUISc6eb3bfa (lorem 2014-08-11 23:15:57 +0000  5) NOSTRUD EXERCITATION ULLAMCO LABORIS0f0d17bd (dolor 2014-06-02 11:31:48 +0000 6*) NISI UT ALIQUIP EX EA COMMODO CONSEQUAT.
$ git word-blame README.mdresults in /tmp/word-blame-output/ - author_stats.tsv - commit_stats.tsv - word-blame-by-commit.html - word-blame-by-author.html - text-output

git word-blame on this README

$ git fireSwitched to a new branch 'fire-master-maochenyan@gmail.com-1451379915'On branch fire-master-maochenyan@gmail.com-1451379915nothing to commit, working directory cleanCounting objects: 2, done.Writing objects: 100% (2/2), 168 bytes | 0 bytes/s, done.Total 2 (delta 0), reused 0 (delta 0)To git@bitbucket.org:maochenyan/fire.git * [new branch]      fire-master-maochenyan@gmail.com-1451379915 -> fire-master-maochenyan@gmail.com-1451379915Branch fire-master-maochenyan@gmail.com-1451379915 set up to track remote branch fire-master-maochenyan@gmail.com-1451379915 from origin.Leave building!

TBD - PR Welcome!

$ git blame-someone-else 'Steve Mao <maochenyan@gmail.com>' 2efb4e3a061a2e8aaa58033e9c13c3e0e5fcde4bSteve Mao  is now the author of 2efb4e3. You're officially an asshole.
$ git dsf

diff-highlight vs diff-so-fancy

git secret init

$ git secret init'.gitsecret/' created.

git secret tell

$ git secret tell my@email.comdone. my@email.com added as a person who knows the secret.cleaning up...

git secret add

$ git secret add hideme.txt1 items added.

git secret list

$ git secret listhideme.txt

git secret hide

$ git secret hidedone. all 1 files are hidden.

git secret reveal

$ git secret revealYou need a passphrase to unlock the secret key foruser: "Test User <my@email.com>"2048-bit RSA key, ID #######, created 2015-01-01 (main key ID #######)gpg: gpg-agent is not available in this sessionFile `hideme.txt' exists. Overwrite? (y/N) ydone. all 1 files are revealed.

Prevents you from committing passwords and other sensitive information to a git repository.

TBD - PR Welcome!

$ git diff --cached -U0diff --git a/README.md b/README.mdindex 0c700d1..7a57cef 100644--- a/README.md+++ b/README.md@@ -1330 +1330 @@ $ git secret hide-done. all 1 files are hidden.+done. all 3 files are hidden.$ git fixup 6d623f6525dd94b4aaea6f6ae2e7a59edc39bdb824aa3d9c10cc02fe813dc83d1ac792cc2e7d705d [F] add screenshot of git-stats <maochenyan@gmail.com>6d623f6525dd94b4aaea6f6ae2e7a59edc39bdb8 [L] changed gif with text <mail@sobolevn.me>
$ git recent

git-recent screenshot

$ git rebase -i master

git-interactive-rebase-tool screenshot

$ git fiddle -hgit-fiddleEdit commit meta information during an *interactive* rebase.`git-fiddle(1)' is a lightweight wrapper around `git-rebase(1)' thatannotates each commit with it's *author* date, the author name, as wellas the commit message. Changes to any of these will then be appliedusing an 'exec' script during the git-rebase sequence.Usage:  $SCRIPT [--[no-]-fiddle-messages] [args...]Options:  --[no-]fiddle-messages Do not edit commit messages. Useful for quick edits                         to author or date. This value can also be set using                         `git config fiddle.messages`.  [args...]              These arguments are passed verbatim to git-rebase.
# add a work profile for Henry$ git user add work "Dr. Henry Jekyll" henry@jekyll.comAdded profile 'work'# add a personal profile for Edward$ git user add home "Edward Hyde" hyde@night.comAdded profile 'home'# list out our saved profiles$ git user listGlobal Profile:  User: Henry <hjekyll@gmail.com>Saved Profiles:  home: Edward Hyde <hyde@night.com>  work: Dr. Henry Jekyll <henry@jekyll.com># set the current git repository user to the home profile$ git user set homeThe user for the 'project' repository has been set too 'Edward Hyde <hyde@night.com>'# list profiles again, notice how the current repository profile is now set$ git userProject Profile:  Path: /path/to/git/project  User: Edward Hyde <hyde@night.com>Saved Profiles:  home: Edward Hyde <hyde@night.com>  work: Dr. Henry Jekyll <henry@jekyll.com>

TBD - PR Welcome!

TBD - PR Welcome!

$ git recall# By default (without options), the command will display commits from yesterday and# for the current user.$ git recall -d 5 -a "Doge"# Show all Doge's commits from 5 days ago.$ git recall -d 5 -a "all"# Show commits of all contributors from 5 days ago.$ git recall -f# Fetch commits beforehand.
$ git standup2f50b39c - docs(commit messages): use commitizen to generate Conventional Commits (12 hours ago) <Steve Mao>9af3600e - fix tests (12 hours ago) <Steve Mao>7f17ba97 - docs: title case (12 hours ago) <Steve Mao>a6d6203c - do not scroll when search is open (12 hours ago) <Steve Mao>53fe681a - chore(pkg): add repo url (12 hours ago) <Steve Mao>5e952ac0 - subtitle should be generic (13 hours ago) <Steve Mao>adbc5423 - add ci/cd to readme. (13 hours ago) <Steve Mao>a1097116 - add versioning to readme (14 hours ago) <Steve Mao>6b6e7465 - add test coverage (15 hours ago) <Steve Mao>
$ git czcz-cli@2.9.6, cz-conventional-changelog@1.2.0Line 1 will be cropped at 100 characters. All other lines will be wrapped after 100 characters.? Select the type of change that you're committing: (Use arrow keys)❯ feat:     A new feature  fix:      A bug fix  docs:     Documentation only changes  style:    Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)  refactor: A code change that neither fixes a bug nor adds a feature  perf:     A code change that improves performance  test:     Adding missing tests or correcting existing tests

TBD - PR Welcome!

$ git fsMounting readonly filesystem on ./git/fs

git url

$ cd ~/github/git-url.git$ git urlEncoding... INPUT is next paragraph:Protocol:  httpsSite:      github.comRepo:      zdharma/git-urlRevision:  mastergitu://ҝjȩMżEäḝЃȣϟṈӛŀї$ git url -r v1.0Encoding... INPUT is next paragraph:Protocol:  httpsSite:      github.comRepo:      zdharma/git-urlRevision:  v1.0gitu://ŪĪАϔEäḝЃȣϟṈӛŀї$ git url -q -p lib/common.sh# -q - quiet, -p - pathgitu://eḶȸṋ0oǗȟЗÛjȩMżEäḝЃȣϟṈӛŀї$ git url //eḶȸṋ0oǗȟЗÛjȩMżEäḝЃȣϟṈӛŀїDecoding... OUTPUT is:Protocol:  httpsSite:      github.comRepo:      zdharma/git-urlRevision:  masterFile:      lib/common.shhttps://github.com/zdharma/git-url

git guclone

$ git guclone ŪĪАϔEäḝЃȣϟṈӛŀїCloning URL https://github.com/zdharma/git-url for revision v1.0Cloning into 'git-url'...remote: Counting objects: 144, done.remote: Compressing objects: 100% (111/111), done.remote: Total 144 (delta 71), reused 102 (delta 32), pack-reused 0Receiving objects: 100% (144/144), 116.43 KiB | 125.00 KiB/s, done.Resolving deltas: 100% (71/71), done.Checking out revision/reference v1.0... OKHEAD is at: 5d10a204, created directory git-url

signatures add --push

$ git signatures add --push v1.0.0Updated tag 'v1.0.0' (was 4de5afd)Enumerating objects: 4, done.Counting objects: 100% (4/4), done.Delta compression using up to 8 threadsCompressing objects: 100% (3/3), done.Writing objects: 100% (3/3), 906 bytes | 906.00 KiB/s, done.Total 3 (delta 1), reused 0 (delta 0)To git@github.com:jsmith/test-signatures   4b5300d..5b1f2cd  refs/notes/signatures -> refs/notes/signatures + 4de5afd...5b1f2cd v1.0.0 -> v1.0.0 (forced update)

signatures verify

$ git signatures verify v1.0.0

signatures verify --min-count 2

$ git signatures verify --min-count 2 v1.0.0Failed to find enough verified signatures to satisfy: min_count=2Signature verification could fail simply because your local gnupgkeychain and trustdb does not contain the required keys.For detailed signature status run:> git signatures show

signatures show

$ git signatures show v1.0.0 Public Key ID    | Status     | Trust     | Date                         | Signer Name=======================================================================================================================01234567890ABCDEF | VALIDSIG   | ULTIMATE  | Sat Nov 10 13:16:10 EST 2018 | Steve Mao <maochenyan@gmail.com>

add a work profile

$ git profile add workName: Name SurnameEmail: name@work-domain.comSigning Key:Profile work added successfully

add a personal profile

$ git profile add home -n "Name Surname" -e name@gmail.comProfile home added successfully

list out our saved profiles

$ git profile listExisting profiles:workhome

set the current git repository user to the home profile

$ git profile use work

Currently there will be no output in case of success

TBD - PR Welcome!

TBD - PR Welcome!

Interactive UI and fuzzy-search for Git branches.

git-jump interface demo

git project open shoppinglist
git project add shoppinglist milk
$ git project board Project: shoppinglist +-----------+------+|   OPEN    | DONE |+-----------+------+| something | love |+-----------+------+| coffee    |      |+-----------+      +| sugar     |      |+-----------+      +| milk      |      |+-----------+------+
$ git project statusProject: shoppinglist  0|  ⭐  something  1|  ⭐  coffee  2|  ⭐  sugar  3|  ⭐  milk  4|  ✅  love

Delete branches with string pattern

$ git branchcut execute -p "feature/*"Switched to branch 'main'Deleted branch feature/test (was 257725f).Deleted branch feature/impl (was 8120c0b).

Delete branches with day-offset

$ git branchcut execute -o 7Switched to branch 'main'Deleted branch bugfix/test (was e2afad6).Deleted branch too-old-branch (was 1d3f82d).

License

CC0

To the extent possible under law,Steve Mao has waived all copyright and related or neighboring rights to this work.

About

😎 A curated list of add-ons that extend/enhance the git CLI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp