This function adds a git remote to the Ulysses repo. If user adds a commit message it will add and commit files prior to adding and pushing to remote. This function will check to see if there are untracked files that need to be commited prior to adding remote.

addGitRemoteToUlysses(
  gitRemoteUrl,
  gitRemoteName = "origin",
  commitMessage = NULL
)

Arguments

gitRemoteUrl

a character string of a git remote url

gitRemoteName

The name of the remote, defaults to origin

commitMessage

a character string of a commit Message to use. if null then skips commit