It is a good idea to close
PLC Control
before using+commit.cmd
- +commit.cmd does:
- looking for the .pro files inside
%ProjectDir%
- exports several
.exp
files from the one.pro
file to the~%ProjectName%
folder - git add * (all)
- git commit -m with-current-date-n-time
- looking for the .pro files inside
From command line, execute
git branch
orgit checkout
before running+restore.cmd
- +restore.cmd does:
- looking for .pro files inside
%ProjectDir%
- import from the .exp files to the .pro one
- looking for .pro files inside
.
├─ .git
│ └─ ...
├─ .gitignore
├─ +commit.cmd
├─ +restore.cmd
├─ Git.mac
├─ README.md
└─ src
├─ foo.pro
├─ bar.pro
├─ bar.tpy
├─ ~foo
│ ├─ FILE111.EXP
│ ├─ FILE222.EXP
│ └─ ...
└─ ~bar
├─ FILE111.EXP
├─ FILE222.EXP
└─ ...
Open options menu in the PLC Control
then add Git.mac as a macrolibrary to the working project: Project → Options → Macros → Macrolibrary... → Include...
After that, you can find it under the Edit → Macros → Git → Commit
menu items
"When TwinCAT PLC Control is started, you can add commands in the command line which will be asserted during execution of the program." Read the rest at the infosys' topic: Command Line/Command File Commands
In a random reading order (on your wish)
- Understanding Git Series (eng)
- Сходство и различие между Mercurial и Git. Почему именно Git?
- Git: наглядная справка
- Про Git. Книга и полное описание работы с Git.
- Git How To. Интерактивный тур.
- Got TwinCAT. Пост в блоге.