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
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,12 +78,14 @@ If you aren't using any zsh frameworks, or if you're a bash user, do the followi
78
78
79
79
| Script | Original Source | Description |
80
80
| ------ | --------------- | ----------- |
81
+
|`git-attic`| Christian Neukirchen's [blog](http://chneukirchen.org/blog/archive/2013/01/a-grab-bag-of-git-tricks.html)| Displays a list of deleted files in your repo. The output is designed to be copy’n’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. |
81
82
|`git-big-file`| Mislav Marohnić's [dotfiles](https://github.com/mislav/dotfiles)| Show files in the repo larger than a threshold size |
82
83
|`git-change-author`| Michael Demmer in [jut-io/git-scripts](https://github.com/jut-io/git-scripts/blob/master/bin/git-change-author)| Change one author/email in the history to another |
83
84
|`git-change-log`| John Wiegley's [git-scripts](https://github.com/jwiegley/git-scripts)| turn `git log` output into a complete Changelog for projects that haven't been maintaining one |
84
85
|`git-changes`| Michael Markert's [dotfiles](https://github.com/cofi/dotfiles)| List authors in the repo in descending commit-count order |
85
86
|`git-churn`| Gary Bernhardt's [dotfiles](https://github.com/garybernhardt/dotfiles/blob/master/bin/git-churn)| Show which files are getting changed most often in the repository |
86
87
|`git-clone-subset`| Rodrigo Silva (MestreLion) <linux@rodrigosilva.com>| Uses `git clone` and `git filter-branch` to remove from the clone all files but the ones requested, along with their associated commit history. |
88
+
|`git-comma`| Christian Neukirchen's [blog](http://chneukirchen.org/blog/archive/2013/01/a-grab-bag-of-git-tricks.html)| Adds and commits a file in one command |
87
89
|`git-conflicts`| Seth Messer's [bits and bobs](https://github.com/megalithic/bits-and-bobs/) repo | Show files with conflicts |
88
90
|`git-copy-branch-name`| Zach Holman's [dotfiles](https://github.com/holman/dotfiles)| Copy the current branch name to the clipboard (OS X Only) |
89
91
|`git-credit`| Zach Holman's [dotfiles](https://github.com/holman/dotfiles)| Quicker way to assign credit to another author on the latest commit|
@@ -106,6 +108,7 @@ If you aren't using any zsh frameworks, or if you're a bash user, do the followi
106
108
|`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. |
107
109
|`git-maxpack`| John Wiegley's [git-scripts](https://github.com/jwiegley/git-scripts)| Compress a repo's pack files as much as possible |
108
110
|`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) |
111
+
|`git-neck`| Christian Neukirchen's [blog](http://chneukirchen.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`|
109
112
|`git-nuke`| Zach Holman's [dotfiles](https://github.com/holman/dotfiles)| Nukes a branch locally and on the origin remote |
110
113
|`git-object-deflate`| Ryan Tomayko's [dotfiles](https://github.com/rtomayko/dotfiles)| Deflate an loose object file and write to standard output |
111
114
|`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 |
@@ -135,7 +138,7 @@ If you aren't using any zsh frameworks, or if you're a bash user, do the followi
135
138
|`git-submodule-rm`| Greg V's [dotfiles](https://github.com/myfreeweb/dotfiles)| Allows you to remove a submodule easily with `git submodule-rm path/to/submodule`|
136
139
|`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 |
137
140
|`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 |
138
-
|`git-trail`|Daniel Hahler's [dotfiles](https://github.com/blueyed/dotfiles/blob/master/usr/bin/git-trail)| Show all branching points in the repo's Git history |
141
+
|`git-trail`|Christian Neukirchen's [blog](http://chneukirchen.org/blog/archive/2013/01/a-grab-bag-of-git-tricks.html)| Show all branching points in the repo's Git history so you can see how to reach commits in the current branch from other branches|
139
142
|`git-undo-push`| ? | Undoes your last push to branch ($1) of origin |
140
143
|`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 |
141
144
|`git-unreleased`| Mislav Marohnić's [dotfiles](https://github.com/mislav/dotfiles)| Shows git commits since the last tagged version |
@@ -180,6 +183,8 @@ Here are some helpful aliases for your `~/.gitconfig`
180
183
181
184
*[git-tips/tips](https://github.com/git-tips/tips) is a collection of git tips
182
185
186
+
* Christian Neukirchen wrote a great [blog post](http://chneukirchen.org/blog/archive/2013/01/a-grab-bag-of-git-tricks.html) on git that is the source for several scripts in this collection.
187
+
183
188
* Mislav Marohnić has a good article on git tips on his [blog](http://mislav.net/2010/07/git-tips/). Several of his git scripts are in this collection.
184
189
185
190
* And when you manage to get your git working directory in a sad state, you can run into the chicken-egg problem where if you just knew what command to man, you could dig yourself out of the hole, but if you knew that, you wouldn't be in the bad place anyway. [Oh Shit, Git!](http://ohshitgit.com/) has a collection of bad situations explained in plain English and how to get yourself out of them.
0 commit comments