Create an empty git repo or reinitialize an existing one
$ git init| # Terminal Cheat Sheet | |
| pwd # print working directory | |
| ls # list files in directory | |
| cd # change directory | |
| ~ # home directory | |
| .. # up one directory | |
| - # previous working directory | |
| help # get help | |
| -h # get help |
Create an empty git repo or reinitialize an existing one
$ git init| ''' | |
| This fixes a RRM bug (v1.4.7) where saved RRM setups do not preserve a | |
| module's 'pinned' status. | |
| ''' | |
| import maya.cmds as cmds | |
| import maya.mel | |
| def RRM_fixPinBug(objs): | |
| for obj in objs: | |
| trans = cmds.xform(obj,q=True, r=True, translation=True) | |
| maya.mel.eval("RRM_PinProxies(1, 0);") |
| inoremap § <Esc> " fix european keyboards | |
| set tags=tags;/ | |
| set clipboard=unnamed | |
| set colorcolumn=120 " Add red line at char 120 | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| set backspace=2 " Helps with backspace after insert | |
| set number " Line numbers on |
| # add to ~/.bashrc | |
| source ~/.bash/watch.sh |
| //vim ~/.bashrc | |
| /add | |
| alias l='ls -Ahq --group-directories-first --color' | |
| //run with full details files | |
| l -l |
| #!/bin/sh | |
| esc=$(printf '\033') | |
| clear | |
| cat << X0 | |
| ${esc}[34m | |
| don't git good... ██ ██ ██ | |
| ░██ ░░ ░██ | |
| █████ ██████ ██████ ░██ ██ █████ ██ ██████ | |
| ██░░░██░░██░░█ ██░░░░██░██ ██ ██░░░██░██░░░██░ |
Setting up p4merge
as diff and merge tool on Windows. Tried for Git version 1.8.4.msysgit.0.
Two alternatives are explained: using the command line, and directly editing the config file.
Being the installation path "C:Program Files\Perforce\p4merge.exe", just run:
$ git config --global diff.tool p4merge
| [alias] | |
| co = checkout | |
| cob = checkout -b | |
| coo = !git fetch && git checkout | |
| br = branch | |
| brd = branch -d | |
| brD = branch -D | |
| merged = branch --merged | |
| dmerged = "git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d" | |
| st = status |