class Git::Base

def chdir # :yields: the Git::Path

:yields: the Git::Path
end
@git.commit('message')
@git.add
# write files
@git.chdir do
example

to the git working directory
changes current working directory for a block
def chdir # :yields: the Git::Path
  Dir.chdir(dir.path) do
    yield dir.path
  end
end