You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -45,7 +45,7 @@ If you wrote one of these scripts and want it removed from this collection, plea
45
45
46
46
| Script | Original Source | Description |
47
47
| ------ | --------------- | ----------- |
48
-
|`git-add-username-remote`| Ryan Tomayko's [dotfiles](https://github.com/rtomayko/dotfiles)| Adds a remote for the current repository for the given GitHub username. |
48
+
|`git-add-username-remote`| Ryan Tomayko's dotfiles | Adds a remote for the current repository for the given GitHub username. |
49
49
|`git-age`| Kristoffer Gronlund's [wiki](https://github.com/krig/git-age/wiki)| A git-blame viewer, written using PyGTK.|
50
50
|`git-attic`| Leah Neukirchen's [blog](https://leahneukirchen.org/blog/archive/2013/01/a-grab-bag-of-git-tricks.html)| Displays a list of deleted files in your repository. The output is designed to be copy and pasted: Pass the second field to `git show` to display the file contents, or just select the hash without ^ to see the commit where removal happened. |
51
51
|`git-authors`| Michael Markert's [dotfiles](https://github.com/cofi/dotfiles) (as `git-changes`) | List authors in the repository in descending commit-count order. |
@@ -70,7 +70,7 @@ If you wrote one of these scripts and want it removed from this collection, plea
70
70
|`git-copy-branch-name`| Zach Holman's [dotfiles](https://github.com/holman/dotfiles)| Copy the current branch's name to the clipboard (macOS Only). |
71
71
|`git-credit`| Zach Holman's [dotfiles](https://github.com/holman/dotfiles)| Quicker way to assign credit to another author on the latest commit. |
72
72
|`git-current-branch`| Joe Block <jpb@unixorn.net>| Prints the name of the current branch with no odd characters or formatting, mainly useful in automation scripts. |
73
-
|`git-cut-branch`| Ryan Tomayko's [dotfiles](https://github.com/rtomayko/dotfiles)| Create a new branch pointed at **HEAD** and reset the current branch to the head of its tracking branch |
73
+
|`git-cut-branch`| Ryan Tomayko's dotfiles | Create a new branch pointed at **HEAD** and reset the current branch to the head of its tracking branch |
74
74
|`git-delete-dangling-commits`|[Stack Overflow](http://stackoverflow.com/questions/3765234/listing-and-deleting-git-commits-that-are-under-no-branch-dangling)| Clean up dangling commits that are not on any branch |
75
75
|`git-delete-local-merged`| From a deleted post by @tekkub| Delete all local branches that have been merged into **HEAD**. |
76
76
|`git-delete-merged-branches`| ? | Purges all branches that have been merged to a target branch (defaults to branches merged to master). |
@@ -98,14 +98,14 @@ If you wrote one of these scripts and want it removed from this collection, plea
98
98
|`git-improved-merge`| Mislav Marohnić's [dotfiles](https://github.com/mislav/dotfiles)| Sophisticated `git merge` with integrated CI check and automatic cleanup. |
99
99
|`git-incoming`| Michael Markert's [dotfiles](https://github.com/cofi/dotfiles)| Show commits in the tracking branch that are not in the local branch. |
100
100
|`git-lines`|[Neil Killeen](https://github.com/kiLLeen)<nkilleen@castlighthealth.com>| Gives you a list of author names with the number of lines last updated by that user in files in the current directory tree with the extension specified. |
101
-
|`git-ls-branch-files`| Joe Block | List files changed between a specifed branch and the current branch |
102
-
|`git-ls-object-refs`| Ryan Tomayko's [dotfiles](https://github.com/rtomayko/dotfiles)| Find references to an object with SHA1 in refs, commits, and trees. All of them. |
101
+
|`git-ls-branch-files`| Joe Block | List files changed between a specified branch and the current branch |
102
+
|`git-ls-object-refs`| Ryan Tomayko's dotfiles | Find references to an object with SHA1 in refs, commits, and trees. All of them. |
103
103
|`git-maildiff`| Sanjeev Kumar's blogpost | A simple `git` command to email diff in color to reviewer/ co-worker. |
104
104
|`git-maxpack`| John Wiegley's [git-scripts](https://github.com/jwiegley/git-scripts)| Compress a repository's pack files as much as possible. |
105
105
|`git-move-commits`| Corey Oordt's [git-scripts](https://github.com/coordt/git-scripts/blob/master/git-move-commits)|`git move-commits num-commits correct-branch` moves the last n commits to correct-branch (creating it if necessary). |
106
106
|`git-neck`| Leah Neukirchen's [blog](https://leahneukirchen.org/blog/archive/2013/01/a-grab-bag-of-git-tricks.html)| Show commits from the HEAD until the first branching point. Companion script for `git-trail`. |
107
107
|`git-nuke`| Zach Holman's [dotfiles](https://github.com/holman/dotfiles)| Nukes a branch locally and on the origin remote. |
108
-
|`git-object-deflate`| Ryan Tomayko's [dotfiles](https://github.com/rtomayko/dotfiles)| Deflate an loose object file and write to standard output. |
108
+
|`git-object-deflate`| Ryan Tomayko's dotfiles | Deflate an loose object file and write to standard output. |
109
109
|`git-oldest-common-ancestor`| Lee Dohm's [dotfiles](https://github.com/lee-dohm/dotfiles/blob/main/bin/git-oldest-ancestor)| Finds the oldest common ancestor commit between two branches. |
110
110
|`git-origin-head`| Don't recall, maybe twitter | Prints the name of the origin remote's default branch. Not every repository uses `main` or `master`. |
111
111
|`git-outgoing`| Michael Markert's [dotfiles](https://github.com/cofi/dotfiles)| Show commits that are on the local branch that have not been pushed to the tracking branch. |
@@ -114,7 +114,7 @@ If you wrote one of these scripts and want it removed from this collection, plea
114
114
|`git-plotrepo`| Matthew McCullogh's [scripts collection](https://github.com/matthewmccullough/scripts/blob/master/git-plotrepo.rb)| Uses dot to draw a graph of the repository. |
115
115
|`git-promote`| Trevor's **Improving My git Workflow** blog post (404 now) | Promotes a local topic branch to a remote tracking branch of the same name. |
116
116
|`git-prune-branches`| Michael Demmer in [jut-io/git-scripts](https://github.com/jut-io/git-scripts/blob/master/bin/git-prune-branches)| Deletes each fully merged branch after prompting for confirmation, than asks if you want the deleted branches deleted from your upstream remotes. |
117
-
|`git-pruneall`| Ryan Tomayko's [dotfiles](https://github.com/rtomayko/dotfiles)| Prune branches from specified remotes, or all remotes when no remote is specified. |
117
+
|`git-pruneall`| Ryan Tomayko's dotfiles | Prune branches from specified remotes, or all remotes when no remote is specified. |
118
118
|`git-publish`| Michael Markert's [dotfiles](https://github.com/cofi/dotfiles)|`git publish remote [remote-branch]`|
119
119
|`git-purge-from-history`| David Underhill’s blog | Permanently delete files or folders from your `git` repository. |
120
120
|`git-pylint`| Joe Block <jpb@unixorn.net>| Runs pylint on any .py files modified or added in the `git status` output. |
@@ -124,7 +124,7 @@ If you wrote one of these scripts and want it removed from this collection, plea
124
124
|`git-recent`| Mine | Shows information about most recent commit on all local branches |
125
125
|`git-recently-checkedout-branches`| Mislav Marohnić's [dotfiles](https://github.com/mislav/dotfiles)| Shows timestamp and name of recently checked-out branches in reverse chronological order. |
126
126
|`git-ref-recent`|[Y combinator article](https://news.ycombinator.com/item?id=22796640)| Shows the date, branch name, commit hash, and commit subject of branches, from most recently modified to oldest branches. |
127
-
|`git-rel`| Ryan Tomayko's [dotfiles](http://github.com/rtomayko/dotfiles)| Shows the relationship between the current branch and *ref*. With no *ref*, the current branch's remote tracking branch is used. |
127
+
|`git-rel`| Ryan Tomayko's dotfiles | Shows the relationship between the current branch and _ref_. With no _ref_, the current branch's remote tracking branch is used. |
128
128
|`git-related`| Mislav Marohnić's [dotfiles](https://github.com/mislav/dotfiles)| Show other files that often get changed in commits that touch `<file>`. |
129
129
|`git-remote-default-branch`| Mine | Shows the default branch for a specified remote, defaults to origin when no remote is specified. |
130
130
|`git-rename-branches`| Rodrigo Silva (MestreLion) <linux@rodrigosilva.com>| Rename multiple branches that start with a given name. |
@@ -145,23 +145,23 @@ If you wrote one of these scripts and want it removed from this collection, plea
145
145
|`git-tag-and-sign`| ? | Create and sign a new tag |
146
146
|`git-tag-diff`| John Wiegley's [git-scripts](https://github.com/jwiegley/git-scripts)| Show the differences between local tags and ones on the remote, if any |
147
147
|`git-thanks`| Mislav Marohnić's [dotfiles](https://github.com/mislav/dotfiles)| List the contributors to a repository in descending commit order, even if their contribution has been completely replaced. |
148
-
|`git-track`| Zach Holman's [dotfiles](https://github.com/holman/dotfiles)| Sets up your branch to track a remote branch. Assumes you mean *origin/localbranchname*. |
148
+
|`git-track`| Zach Holman's [dotfiles](https://github.com/holman/dotfiles)| Sets up your branch to track a remote branch. Assumes you mean _origin/localbranchname_. |
149
149
|`git-trail`| Leah Neukirchen's [blog](http://leahneukirchen.org/blog/archive/2013/01/a-grab-bag-of-git-tricks.html)| Show all branching points in the repository's `git` history so you can see how to reach commits in the current branch from other branches. |
150
150
|`git-undelete`| ? | Undeletes a file. |
151
151
|`git-undo-push`| ? | Undoes your last push to branch **$1** of origin |
152
152
|`git-undo`| ? | Undoes your last commit but keeps the changes in place. |
153
153
|`git-unpushed`| Zach Holman's [dotfiles](https://github.com/holman/dotfiles)| Show the diff of everything you haven't pushed to the origin remote yet |
154
154
|`git-unreleased`| Mislav Marohnić's [dotfiles](https://github.com/mislav/dotfiles)| Shows `git` commits since the last tagged version. |
155
155
|`git-up`| Zach Holman's [dotfiles](https://github.com/holman/dotfiles)| Like `git pull` but show a short and sexy log of changes after merging or rebasing. |
156
-
|`git-upstream-sync`| Joe Block <jpb@unixorn.net>| Fetches *upstream/yourforkname* and rebases it into your local fork, then pushes to your origin remote. |
156
+
|`git-upstream-sync`| Joe Block <jpb@unixorn.net>| Fetches _upstream/yourforkname_ and rebases it into your local fork, then pushes to your origin remote. |
157
157
|`git-what-the-hell-just-happened`| Gary Bernhardt's [dotfiles](https://github.com/garybernhardt/dotfiles/blob/master/bin/git-what-the-hell-just-happened)| Show what just happened. |
158
158
|`git-when-merged`| Michael Haggerty [git-when-merged](https://github.com/mhagger/git-when-merged)| Find when a commit was merged into one or more branches. |
159
159
|`git-where`| Mislav Marohnić's [dotfiles](https://github.com/mislav/dotfiles)| Shows where a particular commit falls between releases. |
160
160
|`git-whoami`| Peter Eisentraut | Shows what username & email you have configured for the repository you're in |
161
161
|`git-winner`| Garry Dolley [https://github.com/up_the_irons/git-winner](https://github.com/up_the_irons/git-winner)| Shows what authors have made the most commits, both by number of commits and by number of lines changed. |
162
162
|`git-wordiness`| Noel Cower | Shows how wordy people's commit messages are. Useful for shaming the folks who commit atrocities like `git commit -m fixup`|
163
163
|`git-wtf`| William Morgan <wmorgan-git-wt-add@masanjin.net>|`git-wtf` displays the state of your repository in a readable, easy-to-scan format. It's useful for getting a summary of how a branch relates to a remote server, and for wrangling many topic branches. |
164
-
|`github-open`| Ryan Tomayko's [dotfiles](http://github.com/rtomayko/dotfiles)||
164
+
|`github-open`| Ryan Tomayko's dotfiles ||
165
165
166
166
## Useful git aliases
167
167
@@ -296,7 +296,6 @@ If you aren't using any ZSH frameworks, or if you're using `bash`, `fish` or ano
296
296
*[branch-manager](https://github.com/elstgav/branch-manager) - ZSH plugin for branch management
297
297
*[commit-helper](https://github.com/andre-filho/commit-helper) - A python script that helps you write commits following commit conventions.
*[flowr](https://github.com/oubasan/flowr) - Bash, ZSH and fish completion support for [git-flow](http://github.com/nvie/gitflow).
300
299
*[gig](https://dev.to/shihanng/gig-a-gitignore-generator-opc) - a CLI `.gitignore` generator
301
300
*[git ZSH plugin](https://github.com/davidde/git) - A replacement for the stock oh-my-zsh `git` plugin. Provides quite a few useful aliases and functions that are more consistent in their naming that the relatively unintuitive ones in the stock plugin.
302
301
*[git-aliases.zsh](https://github.com/peterhurford/git-aliases.zsh) - Peter Hurford's `git` plugin which you may prefer to the `git` plugin from oh-my-zsh.
@@ -333,7 +332,6 @@ If you aren't using any ZSH frameworks, or if you're using `bash`, `fish` or ano
333
332
*[git-wayback-machine](https://github.com/MadRabbit/git-wayback-machine) - A simple script to quickly navigate a project's state through it's `git` history
334
333
*[git-worktree](https://github.com/alexiszamanidis/zsh-git-worktree/) - ZSH plugin that wraps `git worktree` for ease of use.
335
334
*[git_history_visualizer](https://github.com/kidpixo/git_history_visualizer) - python script to visualize the history of files in a `git` repository
336
-
*[gitbaby](https://github.com/lordadamson/gitbaby) - Helper scripts to manage your `git` repositories
337
335
*[gitgo](https://github.com/ltj/gitgo) - Open a GitHub/Gitlab hosted repository in your browser via the command-line (macOS only).
338
336
*[gitsh](https://github.com/thoughtbot/gitsh) - An interactive shell for `git`. From within gitsh you can issue any `git` command, even using your local aliases and configuration.
339
337
*[gunstage](https://github.com/LucasLarson/gunstage) - There are at least eight ways to unstage files in a `git` repository. This is a command-line shell plugin for undoing `git add`.
0 commit comments