How to setup Git folder - ami-iit/ami-commons GitHub Wiki

We use a Git version control system to easily share small files and setup related documentation (e.g. models and schematics).

In order to access a Git repository you need to have:

  1. A Git client;

  2. The URL that identifies the remote server folder;

  3. If the repository requires credentials to access, be sure to have read/write rights;

Git client

  • In Windows, user-friendly and easy-to-use Git clients are Sourcetree or Gitkraken.
  • In Linux environments, a user-friendly and easy-to-use Git client is Gitkraken.

Git workflow

In general, when working with Git you can follow this basic workflow:

  • DISCARD all unnecessary changes to your local files and folders;
  • PULL changes from the remote server to update your local files and folders;
  • WORK (modify, delete, add) with your local files and folders;
  • COMMIT and PUSH your local files and folders to the remote server.

Only the first time, when you create the local folder from the given URL, you have to perform a CLONE.

Note:
Remember that it is a good practice to always add a commit LOG MESSAGE and perform frequent pull/push in order to avoid as much as possible CONFLICTS between your local copy and the remote server files and folders.

Git Cheat Sheet - Git from Command Line