Skip to content
peakpg edited this page Sep 6, 2012 · 6 revisions

Git Workflow

Here's the sample workflow I want to simplify (with a nod to http://reinh.com/blog/2009/03/02/a-git-workflow-for-agile-teams.html)

Starting a Feature

git checkout -b feature/name_of_feature

Integrate changes from master into your feature

git checkout master
git pull
git checkout feature/name_of_feature
git rebase master

Checking the size of a repository

$ git count-objects -v

Look for size pack and that is ~ the # of bites the repository is.

Pruning large files

It would be good to add functions to find and prune large files that make the repo size huge. This should include a way to specify multiple files to be removed from history at once, since this process can take a long time.

Suggested API:

$ gd fat-kids # List the top 10 biggest files in the repo, even if they have been deleted.
$ gd diet [FILE_NAME] # Remove a single file from the repository history.
$ gd diet # Prompt for multiple file names to be removed. Enter blank when complete.