Git for dummies

The basis of any computer project is the SCM. Without a good SCM it will be difficult to reach a good port. So we want to show some first steps to work with GIT.

To start working with GIT, we recommend using an approach to the central repository philosophy (SVN style) against the philosophy of distributed repositories.

For this it is important to have Gitlab or Github as the central repository.

Starting from the topology that code repositories are embedded in a central server (either gitlab or github) a simple and intuitive way of working is as follows:

  • Clone the master branch (or development) of the code repository
git clone <URL_REPO>.git
  • Create a branch in local code for the functionality to be developed. It is important to create a branch for each functionality.
git branch feature/<feature-name>
  • Work comfortably

  • Before uploading, update the code in local with the master branch

git pull origin master
  • If conflicts are found, solve them locally.

  • Upload the code developed to the central repository

git add -A
git commit -m "comentario explicativo de las modificaicones realizadas"
git push origin feature/<feature-name>
  • Perform from the management of the central repository (gitlab or github) a merge request or pull request to the master branch

  • Check the merge request for another partner and do the code merge.


Latest Posts

  • Ansible get started
    instalar ansible en vuestro maquina local. En mi caso, ubuntu: Configurar las ips de los hosts a gestionar con ansible: Importante, se…
    Read More →
  • Apache Tunning for Liferay
    vim /etc/sysconfig/httpd First change default prefork MPM for mutli-thread & multi-process worker MPM: vim /etc/httpd/conf/httpd.conf…
    Read More →
  • Liferay DXP migration
    Configure OLD 6.2 Liferay Portal in local env Get mysql dump and store in local filesystem Start mysql docker container with 6.2 liferay…
    Read More →
  • Redis high availavility installation
    Cookbook to install redis in high availability in master-slave tipology Install redis in a host &lt;APP_SERVER_1_IP> Fill form Configure…
    Read More →
  • Git for dummies
    The basis of any computer project is the SCM. Without a good SCM it will be difficult to reach a good port. So we want to show some first…
    Read More →