descriptionShortcut scripts for Git users (a bit of hacking + simple scripts)
repository URLgit://gitorious.org/git-shortcuts/mainline.git
ownerimz@altlinux.org
last changeTue, 19 Jul 2011 16:13:37 +0000 (19 16:13 +0000)
last refreshSat, 31 Oct 2009 21:19:04 +0000 (31 22:19 +0100)
content tags
add:
readme

In Git, everything is possible. But for some common commands which I would like to execute often I wrote these shortcut scripts.

Most of them had to be implemented on the Plumbing level (which means, a little bit of hacking), but provide features useful for me such as:

git heads-for-merge
what does your FETCH_HEAD say about all the heads that have been fetched for merge?
git the-empty-tree
the ID to use if you need to refer to the empty tree in your (tree-merging) commands
git mread-and-commit
read in multiple refs, merge the trees, and then make a merge commit, without touching your index or the working dir (useful for managing imported histories)
git merge-without-working
the same idea -- advance your HEAD by merging, but without touching your working dir

Some of them are very simple scripts, of course, but they are useful because they bring you higher from the level of Plumbing.

Some scripts written without hacking (I would say so; i.e., on top of the Porcelain), which are useful for me:

git roots-of-hist
find the commits in the histories without parents (useful for managing imported histories);
git push-as-remote
creates "backward"-tracking branches in a remote repo, useful for keeping track of the states of the files in all your working places.

More scripts are to come.

I publish them under GPLv2 (or later, your choice) to be compatible with the mainline Git (I'd like to submit some of them for inclusion in the mainline Git, e.g., the patch for git heads-for-merge.

There is a mirror at Gitorious (with a different web interface).

shortlog
2011-07-19 Ivan ZakharyaschevDo show the top-level working dir.master@vaio/master
2011-07-19 Ivan ZakharyaschevA simple script to "find" (i.e., "print") the GIT_DIR...
2010-05-20 Ivan Zakharyaschevgit-push-as-remote: Added a comment about almost NO...
2010-05-20 Ivan ZakharyaschevDo its best to detect the default case and to push...
2010-05-18 Ivan Zakharyaschevgit-push-as-remote: Handle no args better (fall back...
2009-04-24 Ivan Zakharyaschevgit-track-same: Be safer: just add new values, don...
2009-04-24 Ivan Zakharyaschevgit-track-same: Be more verbose about what is done.
2009-04-24 Ivan ZakharyaschevAdded "git track-same" to quickly setup a simple defaul...
2009-04-20 Ivan ZakharyaschevMerge branch 'master' of git@gitorious.org:git-shortcut... @gitorious/master
2009-03-26 Ivan ZakharyaschevAdded the description of the alternative to the example... @dell/master
2009-03-26 Ivan ZakharyaschevMinor improvement of the example in git-push-as-remote...
2009-03-26 Ivan ZakharyaschevMake "git pass" work with +.
2009-03-26 Ivan ZakharyaschevThe example I gave in git-push-as-remote doesn't work.
2009-03-26 Ivan ZakharyaschevDescribed an alternative to git-push-as-remote (setting...
2009-03-26 Ivan ZakharyaschevRemoved redundant code.@etik/master
2009-03-26 Ivan ZakharyaschevMore correct description.
...
tags
15 years ago sent/for-git/heads-for-merge
heads
12 years ago master