Project Management#
This chapter describes how to organize projects and ensure results are reproducible.
Shell Tips & Tricks#
Redirect all output to a file:
./script.sh 2>&1 > output.log
Display output on screen and save to a file:
./script.sh 2>&1 | tee output.log
Git#
Purging Files#
GitHub has a helpful tutorial about purging files.
The simplest way to purge files is to use the BFG Repo Cleaner, which is
available through conda-forge. To purge a file or directory, first
remove it with git rm
and git commit
. Then run bfg
with either the
--delete-files
flag or the --delete-folders
flag. Both use glob syntax and
search the entire repository (so the argument is a pattern, not a path).
Committing on Behalf of Others#
To make a commit on behalf of someone else, run:
git commit --author "NAME <EMAIL@ucdavis.edu>"