I’m using Git as the version control system for my projects for some time now. Since the graphical user interfaces are not very mature yet and I like having full control over everything, I’m using Git on the command line (i.e. Bash). In order to avoid entering the same commands all over again, I wrote some Bash aliases and functions which ease the use of Git.
This is a short summary of the most used commands:
Verbose add (executes
git add -v and then
git status). All parameters will be forwarded to
add -p foobar.txt
Pipes the output of
git ls-files to
grep to add only those files that match a given pattern. All parameters (including the pattern) will be forwarded to
add this command is verbose and calls
git status at the end.
gadd -i '\.java$'
git pull --rebase and then displays all commits since the last pull in a short format.
In the future I may add further commands. I would appreciate any feedback.
Finally, I want to thank Simon Templer and Simon Thum for their ideas!