Skip to content
Nuno Aguiar edited this page Dec 29, 2017 · 2 revisions

GIT.GIT

GIT.GIT(aDirectory, aUser, aPassword)

Creates a GIT object instance to access a GIT repository on the aDirectory provided. Optionally you can provide also a login and password for remote repositories.


GIT.add

GIT.add(aFilePattern) : JavaDirCache

Adds a given aFilePattern (e.g. "some.file.txt" or "someFiles*") to the current open repository. Throws a "Repository not open"  exception if the repository is not open.


GIT.branchCreate

GIT.branchCreate(aBranchName)

Creates a branch with the provided aBranchName on the current open GIT repository.


GIT.branchDelete

GIT.branchDelete(aBranchName)

Deletes a branch named aBranchName from the current open GIT repository.


GIT.branchList

GIT.branchList()

Lists the name and objectId for each branch available on the current open GIT repository.


GIT.branchRename

GIT.branchRename(aOldName, aNewName)

Renames aOldName branch with aNewName on the current open GIT repository.


GIT.checkout

GIT.checkout(aPath, aBranchName) : JavaRef

Checkouts the current GIT repository to aPath. Optionally you can provide aBranchName to checkout a specific branch.


GIT.clone

GIT.clone(aURL, aDirectory, cloneAll, aBranchName)

Clones aURL GIT repository to the aDirectory provided. Optionally, if you want all branches cloned you can indicate that with cloneAll = true. If don't want all branches cloned but a specific one you can indicate it with aBranchName.


GIT.close

GIT.close()

Closes the current open GIT repository.


GIT.commit

GIT.commit(aMessage, aName, anEmail) : JavaRevCommit

Commits the current open GIT repository with aMessage provided. Throws an exception if not possible. Optionally you can also provide aName and anEmail.


GIT.fetch

GIT.fetch(aRemote)

Performs a fetch command on the current open GIT repository. Optionally you can provide aRemote.


GIT.getJavaGit

GIT.getJavaGit() : JavaGit

Returns the internal Java GIT object.


GIT.init

GIT.init(aDirectory)

Initializes a GIT repository on the aDirectory provided.


GIT.open

GIT.open(aDirectory)

Opens a GIT repository on the aDirectory provided.


GIT.pull

GIT.pull()

Performs a pull command on the current opened GIT repository.


GIT.push

GIT.push()

Performs a push command on the current opened GIT repository.


GIT.remove

GIT.remove(aFilePattern)

Removes a given aFilePattern (e.g. "some.file.txt" or "someFiles*") from the current open repository. Throws an exception if not possible.

Clone this wiki locally