git in
and git out
commands to show incoming and outgoing changes, inspired by Mercurial's hg in
and hg out
.
Clone this repository:
git clone git@github.com:Matthimatiker/git-in-and-git-out.git
Add the bin
directory to your PATH
:
cd git-in-and-git-out
export PATH="`pwd`/bin:$PATH"
You can use these commands to add the path configuration directly to your .bashrc
file:
cd git-in-and-git-out
echo "export PATH=\"`pwd`/bin:\$PATH\"" >> ~/.bashrc
Simply use git in
and git out
like any other git command.
Show incoming changes:
git in
Show outgoing changes:
git out
- The scripts assume that the names of the local and remote branches are equal.
- The scripts fail if no upstream branch is configured, but they do not damage anything.