Проверить где у вас находится файл с глобальными правилами игнорирования можно коммандой
git config --global core.excludesfile
Если оказалось что у вас его нет, то выполняем следующие комманды:
cd ~
xc() { | |
WORKSPACE=$(ls -dt *.xcworkspace 2>/dev/null | head -n 1) | |
PROJECT=$(ls -dt *.xcodeproj 2>/dev/null | head -n 1) | |
if [[ $WORKSPACE != '' ]]; then | |
open $WORKSPACE | |
elif [[ $PROJECT != '' ]]; then | |
open $PROJECT | |
else | |
echo 'R U SROUS?' | |
fi |
#!/usr/local/bin/ruby | |
if !File.exist?('/usr/local/var/postgres/postmaster.pid') && ARGV[0] == 'start' | |
p %x[pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start] | |
p 'PG Started' | |
end | |
if File.exist?('/usr/local/var/postgres/postmaster.pid') && ARGV[0] == 'stop' | |
%x[pg_ctl -D /usr/local/var/postgres stop -s -m fast] | |
p 'PG Stopped' |
function pop_file(&$files) | |
{ | |
## single file | |
if (!is_array($files['name'])) { | |
$temp = $files; | |
$files = array('name' => array()); | |
return $temp; | |
} | |
## as array |
#!/usr/bin/env ruby -wKU | |
redis_bin = %x[which redis-server].strip | |
redis_cli = %x[which redis-cli].strip | |
redis_pid = '/usr/local/var/run/redis.pid' | |
redis_cfg = '/usr/local/etc/redis.conf' | |
if File.exists? redis_pid | |
## stop redis | |
print 'stopping redis-server...' |
function newgit() { | |
if [[ ! -d "$1" ]]; then | |
mkdir $1 && cd $_ && git init && touch README.md && git aa && git ci -m Initial | |
else | |
echo 'ERROR: such directory already exists.' | |
fi | |
} |
// | |
// main.cpp | |
// prob344 | |
// | |
// Created by Alex Antonyuk on 2/1/13. | |
// Copyright (c) 2013 Alex Antonyuk. All rights reserved. | |
// | |
#include <iostream> |
#!/usr/bin/env ruby -wKU | |
# encoding: UTF-8 | |
def fail message | |
puts "ERROR: " + message | |
exit(-1) | |
end | |
def log message | |
stars = '*' * (message.length + 6) |
curl -L -o ~/.clang-format https://gist.githubusercontent.com/dev4dev/78d0508304558e969b2a/raw/9bab5aefe2e29f4b7b6a5560642618e1e78b397c/.clang-format.yml
Thumbs.db | |
.Trash | |
# Exclude the build directory | |
/build | |
# Exclude OS X folder attributes | |
.DS_Store | |
# Exclude user-specific XCode 3 and 4 files |