git
Git as a Dagger Module
Installation
dagger install github.com/shykes/git@v0.1.2Entrypoint
Return Type
GitExample
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
func (m *MyModule) Example() *dagger.Git  {
	return dag.
			Git()
}@function
def example() -> dagger.Git:
	return (
		dag.git()
	)@func()
example(): Git {
	return dag
		.git()
}Types
Git 🔗
load() 🔗
Load the contents of a git repository
Return Type
Repo !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| source | Directory ! | - | The source directory to load. It must contain a `.git` directory, or be one. | 
| worktree | Directory | - | A separate worktree, if needed. | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 load --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.GitRepo  {
	return dag.
			Git().
			Load(source)
}@function
def example(source: dagger.Directory) -> dagger.GitRepo:
	return (
		dag.git()
		.load(source)
	)@func()
example(source: Directory): GitRepo {
	return dag
		.git()
		.load(source)
}init() 🔗
Initialize a git repository
Return Type
Repo !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 initfunc (m *MyModule) Example() *dagger.GitRepo  {
	return dag.
			Git().
			Init()
}@function
def example() -> dagger.GitRepo:
	return (
		dag.git()
		.init()
	)@func()
example(): GitRepo {
	return dag
		.git()
		.init()
}clone() 🔗
Clone a remote git repository
Return Type
Repo !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| url | String ! | - | No description provided | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url stringfunc (m *MyModule) Example(url string) *dagger.GitRepo  {
	return dag.
			Git().
			Clone(url)
}@function
def example(url: str) -> dagger.GitRepo:
	return (
		dag.git()
		.clone(url)
	)@func()
example(url: string): GitRepo {
	return dag
		.git()
		.clone(url)
}remote() 🔗
Initialize a reference to a git remote
Return Type
Remote !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| url | String ! | - | No description provided | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url stringfunc (m *MyModule) Example(url string) *dagger.GitRemote  {
	return dag.
			Git().
			Remote(url)
}@function
def example(url: str) -> dagger.GitRemote:
	return (
		dag.git()
		.remote(url)
	)@func()
example(url: string): GitRemote {
	return dag
		.git()
		.remote(url)
}Repo 🔗
A git repository
state() 🔗
Return Type
Directory !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 statefunc (m *MyModule) Example(url string) *dagger.Directory  {
	return dag.
			Git().
			Clone(url).
			State()
}@function
def example(url: str) -> dagger.Directory:
	return (
		dag.git()
		.clone(url)
		.state()
	)@func()
example(url: string): Directory {
	return dag
		.git()
		.clone(url)
		.state()
}worktree() 🔗
Return Type
Directory !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 worktreefunc (m *MyModule) Example(url string) *dagger.Directory  {
	return dag.
			Git().
			Clone(url).
			Worktree()
}@function
def example(url: str) -> dagger.Directory:
	return (
		dag.git()
		.clone(url)
		.worktree()
	)@func()
example(url: string): Directory {
	return dag
		.git()
		.clone(url)
		.worktree()
}inspect() 🔗
Open an interactive terminal, with the repository available for inspection
Return Type
Terminal !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 inspectfunc (m *MyModule) Example(url string) *dagger.Terminal  {
	return dag.
			Git().
			Clone(url).
			Inspect()
}@function
def example(url: str) -> dagger.Terminal:
	return (
		dag.git()
		.clone(url)
		.inspect()
	)@func()
example(url: string): Terminal {
	return dag
		.git()
		.clone(url)
		.inspect()
}checkout() 🔗
Return a checkout of the repository,
with combines the worktree, and the state at .git
Return Type
Directory !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 checkoutfunc (m *MyModule) Example(url string) *dagger.Directory  {
	return dag.
			Git().
			Clone(url).
			Checkout()
}@function
def example(url: str) -> dagger.Directory:
	return (
		dag.git()
		.clone(url)
		.checkout()
	)@func()
example(url: string): Directory {
	return dag
		.git()
		.clone(url)
		.checkout()
}with() 🔗
Change properties of the repository
Return Type
Repo !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| state | Directory | - | Set the git state directory | 
| worktree | Directory | - | Set the git worktree | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 withfunc (m *MyModule) Example(url string) *dagger.GitRepo  {
	return dag.
			Git().
			Clone(url).
			With()
}@function
def example(url: str) -> dagger.GitRepo:
	return (
		dag.git()
		.clone(url)
		.with_()
	)@func()
example(url: string): GitRepo {
	return dag
		.git()
		.clone(url)
		.with()
}subdirectory() 🔗
Filter the contents of the repository
Return Type
Repo !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| path | String ! | - | No description provided | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 subdirectory --path stringfunc (m *MyModule) Example(url string, path string) *dagger.GitRepo  {
	return dag.
			Git().
			Clone(url).
			Subdirectory(path)
}@function
def example(url: str, path: str) -> dagger.GitRepo:
	return (
		dag.git()
		.clone(url)
		.subdirectory(path)
	)@func()
example(url: string, path: string): GitRepo {
	return dag
		.git()
		.clone(url)
		.subdirectory(path)
}withCommand() 🔗
Execute a git command in the repository
Return Type
Repo !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| args | [String ! ] ! | - | No description provided | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 with-command --args string1 --args string2func (m *MyModule) Example(url string, args []string) *dagger.GitRepo  {
	return dag.
			Git().
			Clone(url).
			WithCommand(args)
}@function
def example(url: str, args: List[str]) -> dagger.GitRepo:
	return (
		dag.git()
		.clone(url)
		.with_command(args)
	)@func()
example(url: string, args: string[]): GitRepo {
	return dag
		.git()
		.clone(url)
		.withCommand(args)
}command() 🔗
A Git command executed from the current repository state
Return Type
Command !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| args | [String ! ] ! | - | No description provided | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 command --args string1 --args string2func (m *MyModule) Example(url string, args []string) *dagger.GitCommand  {
	return dag.
			Git().
			Clone(url).
			Command(args)
}@function
def example(url: str, args: List[str]) -> dagger.GitCommand:
	return (
		dag.git()
		.clone(url)
		.command(args)
	)@func()
example(url: string, args: string[]): GitCommand {
	return dag
		.git()
		.clone(url)
		.command(args)
}withRemote() 🔗
Return Type
Repo !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| name | String ! | - | No description provided | 
| url | String ! | - | No description provided | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 with-remote --name string --url stringfunc (m *MyModule) Example(url string, name string, url1 string) *dagger.GitRepo  {
	return dag.
			Git().
			Clone(url).
			WithRemote(name, url1)
}@function
def example(url: str, name: str, url1: str) -> dagger.GitRepo:
	return (
		dag.git()
		.clone(url)
		.with_remote(name, url1)
	)@func()
example(url: string, name: string, url1: string): GitRepo {
	return dag
		.git()
		.clone(url)
		.withRemote(name, url1)
}tag() 🔗
Return Type
Tag !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| name | String ! | - | No description provided | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 tag --name stringfunc (m *MyModule) Example(url string, name string) *dagger.GitTag  {
	return dag.
			Git().
			Clone(url).
			Tag(name)
}@function
def example(url: str, name: str) -> dagger.GitTag:
	return (
		dag.git()
		.clone(url)
		.tag(name)
	)@func()
example(url: string, name: string): GitTag {
	return dag
		.git()
		.clone(url)
		.tag(name)
}commit() 🔗
Return Type
Commit !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| digest | String ! | - | No description provided | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 commit --digest stringfunc (m *MyModule) Example(url string, digest string) *dagger.GitCommit  {
	return dag.
			Git().
			Clone(url).
			Commit(digest)
}@function
def example(url: str, digest: str) -> dagger.GitCommit:
	return (
		dag.git()
		.clone(url)
		.commit(digest)
	)@func()
example(url: string, digest: string): GitCommit {
	return dag
		.git()
		.clone(url)
		.commit(digest)
}Remote 🔗
A git remote
url() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 urlfunc (m *MyModule) Example(ctx context.Context, url string) string  {
	return dag.
			Git().
			Remote(url).
			Url(ctx)
}@function
async def example(url: str) -> str:
	return await (
		dag.git()
		.remote(url)
		.url()
	)@func()
async example(url: string): Promise<string> {
	return dag
		.git()
		.remote(url)
		.url()
}tag() 🔗
Lookup a tag in the remote
Return Type
RemoteTag !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| name | String ! | - | No description provided | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 tag --name stringfunc (m *MyModule) Example(url string, name string) *dagger.GitRemoteTag  {
	return dag.
			Git().
			Remote(url).
			Tag(name)
}@function
def example(url: str, name: str) -> dagger.GitRemoteTag:
	return (
		dag.git()
		.remote(url)
		.tag(name)
	)@func()
example(url: string, name: string): GitRemoteTag {
	return dag
		.git()
		.remote(url)
		.tag(name)
}tags() 🔗
Query the remote for its tags.
If `filter` is set, only tag matching that regular expression will be included.
Return Type
[RemoteTag ! ] !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| filter | String | - | A regular expression to filter tag names. Only matching tag names will be included. | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 tagsfunc (m *MyModule) Example(url string) []*dagger.GitRemoteTag  {
	return dag.
			Git().
			Remote(url).
			Tags()
}@function
def example(url: str) -> List[dagger.GitRemoteTag]:
	return (
		dag.git()
		.remote(url)
		.tags()
	)@func()
example(url: string): GitRemoteTag[] {
	return dag
		.git()
		.remote(url)
		.tags()
}branch() 🔗
Lookup a branch in the remote
Return Type
RemoteBranch !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| name | String ! | - | No description provided | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 branch --name stringfunc (m *MyModule) Example(url string, name string) *dagger.GitRemoteBranch  {
	return dag.
			Git().
			Remote(url).
			Branch(name)
}@function
def example(url: str, name: str) -> dagger.GitRemoteBranch:
	return (
		dag.git()
		.remote(url)
		.branch(name)
	)@func()
example(url: string, name: string): GitRemoteBranch {
	return dag
		.git()
		.remote(url)
		.branch(name)
}branches() 🔗
List available branches in the remote
Return Type
[RemoteBranch ! ] !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| filter | String | - | A regular expression to filter branch names. Only matching names are included. | 
Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 branchesfunc (m *MyModule) Example(url string) []*dagger.GitRemoteBranch  {
	return dag.
			Git().
			Remote(url).
			Branches()
}@function
def example(url: str) -> List[dagger.GitRemoteBranch]:
	return (
		dag.git()
		.remote(url)
		.branches()
	)@func()
example(url: string): GitRemoteBranch[] {
	return dag
		.git()
		.remote(url)
		.branches()
}Command 🔗
A Git command
args() 🔗
Return Type
[String ! ] !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 command --args string1 --args string2 \
 argsfunc (m *MyModule) Example(ctx context.Context, url string, args []string) []string  {
	return dag.
			Git().
			Clone(url).
			Command(args).
			Args(ctx)
}@function
async def example(url: str, args: List[str]) -> List[str]:
	return await (
		dag.git()
		.clone(url)
		.command(args)
		.args()
	)@func()
async example(url: string, args: string[]): Promise<string[]> {
	return dag
		.git()
		.clone(url)
		.command(args)
		.args()
}input() 🔗
Return Type
Repo !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 command --args string1 --args string2 \
 inputfunc (m *MyModule) Example(url string, args []string) *dagger.GitRepo  {
	return dag.
			Git().
			Clone(url).
			Command(args).
			Input()
}@function
def example(url: str, args: List[str]) -> dagger.GitRepo:
	return (
		dag.git()
		.clone(url)
		.command(args)
		.input()
	)@func()
example(url: string, args: string[]): GitRepo {
	return dag
		.git()
		.clone(url)
		.command(args)
		.input()
}debug() 🔗
Return Type
Terminal !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 command --args string1 --args string2 \
 debugfunc (m *MyModule) Example(url string, args []string) *dagger.Terminal  {
	return dag.
			Git().
			Clone(url).
			Command(args).
			Debug()
}@function
def example(url: str, args: List[str]) -> dagger.Terminal:
	return (
		dag.git()
		.clone(url)
		.command(args)
		.debug()
	)@func()
example(url: string, args: string[]): Terminal {
	return dag
		.git()
		.clone(url)
		.command(args)
		.debug()
}stdout() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 command --args string1 --args string2 \
 stdoutfunc (m *MyModule) Example(ctx context.Context, url string, args []string) string  {
	return dag.
			Git().
			Clone(url).
			Command(args).
			Stdout(ctx)
}@function
async def example(url: str, args: List[str]) -> str:
	return await (
		dag.git()
		.clone(url)
		.command(args)
		.stdout()
	)@func()
async example(url: string, args: string[]): Promise<string> {
	return dag
		.git()
		.clone(url)
		.command(args)
		.stdout()
}stderr() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 command --args string1 --args string2 \
 stderrfunc (m *MyModule) Example(ctx context.Context, url string, args []string) string  {
	return dag.
			Git().
			Clone(url).
			Command(args).
			Stderr(ctx)
}@function
async def example(url: str, args: List[str]) -> str:
	return await (
		dag.git()
		.clone(url)
		.command(args)
		.stderr()
	)@func()
async example(url: string, args: string[]): Promise<string> {
	return dag
		.git()
		.clone(url)
		.command(args)
		.stderr()
}sync() 🔗
Return Type
Command !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 command --args string1 --args string2 \
 syncfunc (m *MyModule) Example(url string, args []string) *dagger.GitCommand  {
	return dag.
			Git().
			Clone(url).
			Command(args).
			Sync()
}@function
def example(url: str, args: List[str]) -> dagger.GitCommand:
	return (
		dag.git()
		.clone(url)
		.command(args)
		.sync()
	)@func()
example(url: string, args: string[]): GitCommand {
	return dag
		.git()
		.clone(url)
		.command(args)
		.sync()
}output() 🔗
Return Type
Repo !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 command --args string1 --args string2 \
 outputfunc (m *MyModule) Example(url string, args []string) *dagger.GitRepo  {
	return dag.
			Git().
			Clone(url).
			Command(args).
			Output()
}@function
def example(url: str, args: List[str]) -> dagger.GitRepo:
	return (
		dag.git()
		.clone(url)
		.command(args)
		.output()
	)@func()
example(url: string, args: string[]): GitRepo {
	return dag
		.git()
		.clone(url)
		.command(args)
		.output()
}Tag 🔗
repository() 🔗
Return Type
Repo !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 tag --name string \
 repositoryfunc (m *MyModule) Example(url string, name string) *dagger.GitRepo  {
	return dag.
			Git().
			Clone(url).
			Tag(name).
			Repository()
}@function
def example(url: str, name: str) -> dagger.GitRepo:
	return (
		dag.git()
		.clone(url)
		.tag(name)
		.repository()
	)@func()
example(url: string, name: string): GitRepo {
	return dag
		.git()
		.clone(url)
		.tag(name)
		.repository()
}name() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 tag --name string \
 namefunc (m *MyModule) Example(ctx context.Context, url string, name string) string  {
	return dag.
			Git().
			Clone(url).
			Tag(name).
			Name(ctx)
}@function
async def example(url: str, name: str) -> str:
	return await (
		dag.git()
		.clone(url)
		.tag(name)
		.name()
	)@func()
async example(url: string, name: string): Promise<string> {
	return dag
		.git()
		.clone(url)
		.tag(name)
		.name()
}fullName() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 tag --name string \
 full-namefunc (m *MyModule) Example(ctx context.Context, url string, name string) string  {
	return dag.
			Git().
			Clone(url).
			Tag(name).
			FullName(ctx)
}@function
async def example(url: str, name: str) -> str:
	return await (
		dag.git()
		.clone(url)
		.tag(name)
		.full_name()
	)@func()
async example(url: string, name: string): Promise<string> {
	return dag
		.git()
		.clone(url)
		.tag(name)
		.fullName()
}tree() 🔗
Return Type
Directory !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 clone --url string \
 tag --name string \
 treefunc (m *MyModule) Example(url string, name string) *dagger.Directory  {
	return dag.
			Git().
			Clone(url).
			Tag(name).
			Tree()
}@function
def example(url: str, name: str) -> dagger.Directory:
	return (
		dag.git()
		.clone(url)
		.tag(name)
		.tree()
	)@func()
example(url: string, name: string): Directory {
	return dag
		.git()
		.clone(url)
		.tag(name)
		.tree()
}Commit 🔗
digest() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 branch --name string \
 commit \
 digestfunc (m *MyModule) Example(ctx context.Context, url string, name string) string  {
	return dag.
			Git().
			Remote(url).
			Branch(name).
			Commit().
			Digest(ctx)
}@function
async def example(url: str, name: str) -> str:
	return await (
		dag.git()
		.remote(url)
		.branch(name)
		.commit()
		.digest()
	)@func()
async example(url: string, name: string): Promise<string> {
	return dag
		.git()
		.remote(url)
		.branch(name)
		.commit()
		.digest()
}repository() 🔗
Return Type
Repo !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 branch --name string \
 commit \
 repositoryfunc (m *MyModule) Example(url string, name string) *dagger.GitRepo  {
	return dag.
			Git().
			Remote(url).
			Branch(name).
			Commit().
			Repository()
}@function
def example(url: str, name: str) -> dagger.GitRepo:
	return (
		dag.git()
		.remote(url)
		.branch(name)
		.commit()
		.repository()
	)@func()
example(url: string, name: string): GitRepo {
	return dag
		.git()
		.remote(url)
		.branch(name)
		.commit()
		.repository()
}tree() 🔗
Return Type
Directory !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 branch --name string \
 commit \
 treefunc (m *MyModule) Example(url string, name string) *dagger.Directory  {
	return dag.
			Git().
			Remote(url).
			Branch(name).
			Commit().
			Tree()
}@function
def example(url: str, name: str) -> dagger.Directory:
	return (
		dag.git()
		.remote(url)
		.branch(name)
		.commit()
		.tree()
	)@func()
example(url: string, name: string): Directory {
	return dag
		.git()
		.remote(url)
		.branch(name)
		.commit()
		.tree()
}RemoteTag 🔗
A git tag
name() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 tag --name string \
 namefunc (m *MyModule) Example(ctx context.Context, url string, name string) string  {
	return dag.
			Git().
			Remote(url).
			Tag(name).
			Name(ctx)
}@function
async def example(url: str, name: str) -> str:
	return await (
		dag.git()
		.remote(url)
		.tag(name)
		.name()
	)@func()
async example(url: string, name: string): Promise<string> {
	return dag
		.git()
		.remote(url)
		.tag(name)
		.name()
}commitId() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 tag --name string \
 commit-idfunc (m *MyModule) Example(ctx context.Context, url string, name string) string  {
	return dag.
			Git().
			Remote(url).
			Tag(name).
			CommitId(ctx)
}@function
async def example(url: str, name: str) -> str:
	return await (
		dag.git()
		.remote(url)
		.tag(name)
		.commit_id()
	)@func()
async example(url: string, name: string): Promise<string> {
	return dag
		.git()
		.remote(url)
		.tag(name)
		.commitId()
}url() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 tag --name string \
 urlfunc (m *MyModule) Example(ctx context.Context, url string, name string) string  {
	return dag.
			Git().
			Remote(url).
			Tag(name).
			Url(ctx)
}@function
async def example(url: str, name: str) -> str:
	return await (
		dag.git()
		.remote(url)
		.tag(name)
		.url()
	)@func()
async example(url: string, name: string): Promise<string> {
	return dag
		.git()
		.remote(url)
		.tag(name)
		.url()
}commit() 🔗
Return the commit referenced by the remote tag
Return Type
Commit !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 tag --name string \
 commitfunc (m *MyModule) Example(url string, name string) *dagger.GitCommit  {
	return dag.
			Git().
			Remote(url).
			Tag(name).
			Commit()
}@function
def example(url: str, name: str) -> dagger.GitCommit:
	return (
		dag.git()
		.remote(url)
		.tag(name)
		.commit()
	)@func()
example(url: string, name: string): GitCommit {
	return dag
		.git()
		.remote(url)
		.tag(name)
		.commit()
}RemoteBranch 🔗
A git branch
name() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 branch --name string \
 namefunc (m *MyModule) Example(ctx context.Context, url string, name string) string  {
	return dag.
			Git().
			Remote(url).
			Branch(name).
			Name(ctx)
}@function
async def example(url: str, name: str) -> str:
	return await (
		dag.git()
		.remote(url)
		.branch(name)
		.name()
	)@func()
async example(url: string, name: string): Promise<string> {
	return dag
		.git()
		.remote(url)
		.branch(name)
		.name()
}commitId() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 branch --name string \
 commit-idfunc (m *MyModule) Example(ctx context.Context, url string, name string) string  {
	return dag.
			Git().
			Remote(url).
			Branch(name).
			CommitId(ctx)
}@function
async def example(url: str, name: str) -> str:
	return await (
		dag.git()
		.remote(url)
		.branch(name)
		.commit_id()
	)@func()
async example(url: string, name: string): Promise<string> {
	return dag
		.git()
		.remote(url)
		.branch(name)
		.commitId()
}url() 🔗
Return Type
String !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 branch --name string \
 urlfunc (m *MyModule) Example(ctx context.Context, url string, name string) string  {
	return dag.
			Git().
			Remote(url).
			Branch(name).
			Url(ctx)
}@function
async def example(url: str, name: str) -> str:
	return await (
		dag.git()
		.remote(url)
		.branch(name)
		.url()
	)@func()
async example(url: string, name: string): Promise<string> {
	return dag
		.git()
		.remote(url)
		.branch(name)
		.url()
}commit() 🔗
Return the commit referenced by the remote branch
Return Type
Commit !Example
dagger -m github.com/shykes/git@c9fe2b28adfa983fbd12e0cb0018b3cad3625e8f call \
 remote --url string \
 branch --name string \
 commitfunc (m *MyModule) Example(url string, name string) *dagger.GitCommit  {
	return dag.
			Git().
			Remote(url).
			Branch(name).
			Commit()
}@function
def example(url: str, name: str) -> dagger.GitCommit:
	return (
		dag.git()
		.remote(url)
		.branch(name)
		.commit()
	)@func()
example(url: string, name: string): GitCommit {
	return dag
		.git()
		.remote(url)
		.branch(name)
		.commit()
}