git-commit git-commit

Commit and push changes to repository


  • add - Add file contents to the git index
  • allow_empty - Allow empty commit
  • commit_message - Text body of the comment to be created
  • git - The name of the git integration you want to use. If left empty, Codefresh will attempt to use the git provider that was used during account sign-up. Note that this might have unexpected results if you are changing your Git integrations.
  • git_user_email - Git user email
  • git_user_name - The username the commit comes from
  • repo - path of the repository without the domain name in the form of my_username/my_repo
  • working_directory - The directory to which the repository is cloned. It can be an explicit path in the container’s file system, or a variable that references another step. The default value is '/codefresh/volume/${{CF_REPO_NAME}}'
  title: Commit changes and push
  type: git-commit
    repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
    git: github
    working_directory: '/codefresh/volume/${{CF_REPO_NAME}}'
    commit_message: Some commit message
    git_user_name: git-user-name
    git_user_email: [email protected]
    allow_empty: false
      - file1.txt
      - file2.txt
      - ./dir3

Dima Golomozy
Jul 4, 2021