Skip to content

Instantly share code, notes, and snippets.

@estadoactivo
estadoactivo / new_gist_file
Created June 16, 2013 16:40
Git ignoring changes in tracked files
git update-index --assume-unchanged <file>
Revert:
git update-index --no-assume-unchanged <file>
@estadoactivo
estadoactivo / new_gist_file
Created June 16, 2013 21:20
Git ignore mode changes in tracked files (chmod)
git config core.filemode false
@estadoactivo
estadoactivo / new_gist_file
Created June 18, 2013 16:14
Borrar carpetas .svn de un directorio y subcarpetas
rm -rf 'find . -type d -name .svn'
@estadoactivo
estadoactivo / new_gist_file
Created June 19, 2013 09:17
Ver archivos editados de un branch
git show --pretty=oneline --name -only HEAD | sed 1d
@estadoactivo
estadoactivo / new_gist_file
Created June 19, 2013 09:18
Ver branches y sus commits
git show-branch
@estadoactivo
estadoactivo / new_gist_file
Created June 19, 2013 09:18
Ver las branch que hay online y offline
git branch -a
@estadoactivo
estadoactivo / new_gist_file
Created June 20, 2013 14:43
Deshacer el último Commit
git reset --soft HEAD^
@estadoactivo
estadoactivo / new_gist_file
Created June 25, 2013 18:14
Git ignore files with permissions changed
git config core.filemode false
@estadoactivo
estadoactivo / new_gist_file
Created June 25, 2013 18:51
Change folder and subfolders permission
chmod -R <permissionsettings> <dirname>
@estadoactivo
estadoactivo / new_gist_file
Created June 27, 2013 15:55
Show variables of database.
SHOW VARIABLES;
SHOW VARIABLES LIKE 'character_set_database';
SHOW VARIABLES LIKE 'collation_database';