Module: Git

Defined in:
lib/Git/Remote.rb,
lib/Git/Log.rb,
lib/Git/Blame.rb,
lib/Git/Branch.rb,
lib/Git/VERSION.rb

Overview

Examples:

require ‘Git/Remote’

Git::Remote.all

> [#<Git::Remote @name=‘origin’, @url=‘[email protected]:thoran/rails.git’>, #<Git::Remote @name=‘upstream’, @url=‘[email protected]:rails/rails.git’>]

Git::Remote.exist?(‘origin’)

> true

git_remote = Git::Remote.find(‘origin’)

> #<Git::Remote @name=“origin” @url=“[email protected]:thoran/rails.git”>

git_remote.to_s

> “origin [email protected]:thoran/rails.git”

git_remote.name

> “origin”

Defined Under Namespace

Classes: Blame, Branch, Log, Remote

Constant Summary collapse

VERSION =
'0.14.1'