-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathaliases.sh
More file actions
executable file
·25 lines (19 loc) · 1.38 KB
/
aliases.sh
File metadata and controls
executable file
·25 lines (19 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
#############################################################
# From https://github.com/mig82/visualizer-and-git #
# @Author: Miguelangel Fernandez #
#############################################################
# To fire your Git client of choice or the Terminal from Visualizer's `Window>Version` Control menu option.
#git config --global --add alias.gui '!sh -c /usr/local/git/libexec/git-core/git-gui'
#git config --global --add alias.gui '!sh -c /usr/local/Cellar/git/2.16.3/libexec/git-core/git-gui'
#git config --global --add alias.gui 'open -a SourceTree .'
#git config --global --add alias.gui '/Applications/GitKraken.app/Contents/MacOS/GitKraken --path .'
git config --global alias.gui 'open -a Terminal .'
# To temporarily quiet down changes to specific files without altering your .gitignore.
git config --global alias.mute 'update-index --assume-unchanged'
git config --global alias.unmute 'update-index --no-assume-unchanged'
# To create a zip archive of your project.
git config --global alias.zip '!git clean -fXd && git archive --format zip -9 HEAD --output $1 && ls -lh $1'
# To download the .gitingore and .gitattributes into the current localtion.
git config --global alias.visinit '!curl -L http://bit.ly/visgitignore -o .gitignore && curl -L http://bit.ly/visgitattributes -o .gitattributes'
echo "Done: Git aliases for Visualizer"