PLC Source Control - Adding a Repository : Différence entre versions

[version en cours de rédaction][version en cours de rédaction]
 
Ligne 10 : Ligne 10 :
 
}}
 
}}
 
{{Introduction
 
{{Introduction
|Introduction=<translate>Branching is a means of diverging from your main line of development and allows you to continue to do work without affecting the main line of code.
+
|Introduction=<translate>These instructions give details of how to set up a repository so that any changes made to the core project will be tracked. For the git source control to work it is important that GIT has been chosen as the source control program. see Prerequisits.
  
This is used when you want to try out or develop some alternative code but want to have the ability to switch back to the original code if necessary.
+
The instructions start from :  The project has been created and PLC code has been loaded in to the TwinCAT Xae Shell program.</translate>
 
 
These instructions give details of how you create a branch within the Beckhoff TwinCAT Xae Shell program.
 
 
 
These instructions start from a point where the project has been created and PLC code has been loaded in to the TwinCAT Xae Shell program,</translate>
 
 
}}
 
}}
 
{{Materials
 
{{Materials
 
|Prerequisites={{Prerequisites
 
|Prerequisites={{Prerequisites
 +
|Prerequisites=Create a TwinCAT Project from Scratch
 +
}}{{Prerequisites
 
|Prerequisites=PLC Source Control - Selecting GIT as the source control Plug-in
 
|Prerequisites=PLC Source Control - Selecting GIT as the source control Plug-in
}}{{Prerequisites
 
|Prerequisites=Create a TwinCAT Project from Scratch
 
 
}}
 
}}
 
}}
 
}}

Version actuelle datée du 9 mai 2022 à 13:26

Auteur avatarGareth Green | Dernière modification 9/05/2022 par Gareth Green en cours de rédaction

Introduction

These instructions give details of how to set up a repository so that any changes made to the core project will be tracked. For the git source control to work it is important that GIT has been chosen as the source control program. see Prerequisits.

The instructions start from : The project has been created and PLC code has been loaded in to the TwinCAT Xae Shell program.

Étape 1 - Open Team Explorer

Select View

From the Drop-down menu select Team Explorer



Étape 2 - Manage Connections

Select Connections Icon



Étape 3 - Add Repository

1 Select the Add Option

2. Enter the path of the source folder for your project

3. Press Add button to add the repository



Étape 4 - Select Repository

The Repository has been added

1. Select Connections Icon by

selecting the red square to show the project.



Étape 5 - Team Explorer Home Screen

This is the main screen for the version control commands



Étape 6 - Branches

Select the Branches option



Étape 7 - Branches Detail

This panel now shows the Branches Available

  1. The master branch this is the main copy of the program in the local folders.
  2. The remote/origin this is the remote repository




Étape 8 - Working with Git and Tc Xae Shell

For more information on Source Control and working with Tc Xae Shell . follow the link.

PLC Source Control - Working with GIT and TcXaeShell#Introduction

Commentaires

Draft