Telosys doc
WebsiteTwitterLinkedInNews
  • Telosys documentation
  • Telosys CLI
    • Installation on Linux
    • Installation on Windows
    • CLI configuration
    • CLI commands
    • Getting started
  • Telosys with VSCode
    • Extension installation
    • VSCode settings
    • Telosys terminal in VSCode
    • Telosys editor configuration
  • Telosys with JetBrains IDE
  • Project configuration
  • Project variables
  • Project databases
  • Models and entities
    • Model structure
    • Entity
    • Attribute / Link
    • Annotations
    • Tags
    • Examples
    • Model creation
    • Model installation
    • Models management
  • Bundles of templates
    • Bundle structure
    • Bundle creation
    • Bundles installation
    • Bundles management
    • Velocity language
    • Velocity directives
    • Velocity object types
    • Telosys directives
    • Telosys variables
    • Telosys objects
    • Code snippets
  • Code generation
    • "gen" command
    • "genb" command
  • Target languages
    • C++
    • C#
    • Golang
    • Java
    • JavaScript
    • Kotlin
    • PHP
    • Python
    • Scala
    • TypeScript
  • Target databases (SQL)
    • Predefined rules
    • Specific rules
    • Type size and precision
  • Telosys with Git
    • GitHub usage
    • Install with Git
    • Publish with Git
  • Support the project
  • How to contribute
  • Sponsors
  • IDE and editors
  • Telosys 3 Eclipse plugin
    • Eclipse plugin installation
    • Eclipse customization
    • Telosys 3 database model
Powered by GitBook
On this page
  • 1) Prepare the local Git repository
  • 2) Prepare the remote repository
  • 3) Publish the repository
  1. Telosys with Git

Publish with Git

Once you've created (or customized) a model or a bundle, you might want to publish it as a Git repository so that you can share it and reuse it later from anywhere.

Here's the procedure to follow...

All the following command examples are meant to be used with a standard operating-system shell (not in Telosys-CLI )

1) Prepare the local Git repository

Each model or bundle is a directory, so you can use it as Git repository.

In the model/bundle directory:

  • If the directory is not already a Git repository (for example after a "git clone") initialize the Git repository with initial branch (for example “master”) $git init -b master

  • You can also define your user name and email for the current repository (optional) $git config user.name "Your Name" $git config user.email your@email.com

  • Add all the files to be committed (usually all files) $git add .

  • Commit the files $git commit -m "Initial commit"

2) Prepare the remote repository

On the "remote side" (Git server)

Create a Git repository on a server to host the repository you wish to publish. You can do that on GitHub, GitLab, your own server, etc...

Copy the remote-repository URL. For example: https://github.com/xxx/yyy/repo-name.git https://gitlab.com/xxx/yyy/repo-name.git

3) Publish the repository

On your workstation, in the local directory:

  • Add the remote repository as a new remote (for example with name “origin”) $git remote add origin https://xxx/yyy/repo-name.git (use the previously copied URL)

  • Check Git remote $git remote -v origin https://xxx/yyy/repo-name.git (fetch) origin https://xxx/yyy/repo-name.git (push)

  • Push to “origin” (remote-side) a branch of your repository (for example “master”) $git push origin master (if not authenticated Git ask for user & password)

And that's all. The remote Git repository contains now all the model/bundle files. The momdel/bundle is now installable by Telosys on any workstation.

PreviousInstall with GitNextSupport the project

Last updated 4 months ago