octupus.o4n_dev_git.o4n_git_set_remote (2.3.5) — module

set git branch and it remote in a directory

| "added in version" 2.0 of octupus.o4n_dev_git"

Authors: Ed Scrimaglia

Install collection

Install with ansible-galaxy collection install octupus.o4n_dev_git:==2.3.5


Add to requirements.yml

  collections:
    - name: octupus.o4n_dev_git
      version: 2.3.5

Description

Detect if already exists a remote git linked to the directory

Set the origin/remote link

Set the main branch

Inputs

    
path:
    default: ./
    description: directory where to set the remote
    required: false

branch:
    description: branch to be used
    required: true

origin:
    default: origin
    description: the origin
    required: false

remote:
    description: repository to be set as remote by git
    required: true