4 git snippets
Snippets are tiny notes I've collected for easy reference.
Backup an entire GitHub repository
The following shell script will back up an organization's GitHub repositories, including the all branches of the source tree and the GitHub wiki and issue list (if any).
(Also at rodw/backup-github.sh.)
Published 1 Jan 2014
'.gitignore' boilerplate for common temporary files.
A list of patterns for the names of common temporary and noise files, to be used as boilerplate in .gitignore
, .hgignore
, .svnignore
etc.
# various tmp and noise files
#---------------------------------------------------------------------
$RECYCLE.BIN/
*.*~
*.log
*.pid
*.un~
*~
.*.sw[a-z]
.DS_Store
.Spotlight-V100
.Trashes
.\#*
._*
.directory
.elc
/.emacs.desktop
/.emacs.desktop.lock
Desktop.ini
Session.vim
Thumbs.db
\#*\#
auto-save-list
log
logs
temp
tmp
tramp
Snippets are tiny notes I've collected for easy reference.