This is in no way a complete overview on what CODESYS Git offers. It is merely meant as a primer to get you up and running with git on forge quickly.
Git is a popular open source distributed version control system. Understanding and mastering the basics is easy. However, the best results are achieved via 'learning by doing'. This blog-post tries to condense the bare essentials for CODESYS Git so you can get started quickly.
Be aware that Git is a totally different beast from svn! If you have previous experience with svn you will have a (small) head start in understanding the basic key concepts of Git.
CODESYS Git usage requires a valid Professional Developer Edition or a Demo License (free).
If the entire community (you all) will ask politely, CODESYS will surely consider enabling free usage for use with CODESYS Forge
'Pull Requests' and 'Squash' will be on the roadmap for an updated version
Now enter Git in the search bar and start the search by pressing enter,
Select it and press install and follow the instructions,
Initial setup is done a few times in the development cycle, but usually significantly less then the repeated flow, unless you like to tinker around much or you have a need for many git's
Add a new "Git" repository on a project where you are Admin via "Add New..." menu,
Once the Git repository has been added to cForge, you can use it to check in and out code as your "remote main"
Initialise (create) local main git
Stage/commit loaded project into local main
Add remote main as a location in local main
Push local main to the remote main
Keywords: create remote, load project, create local, commit local, add remote, push remote
Branch and checkout the local main into a new named branch for your first contribution
After completion, stage and commit the changes onto your current working branch
Checkout the local main
Merge the previous working branch into the local main
Keywords: branch/checkout, code, stage/commit, merge, push
- working branch named "Dev_PrimaryHost" has been created from the local main
- In this branch, "FB_Payload_Old" has been deleted, staged and committed into "Dev_PrimaryHost"
- After this the branch has been merged with "Local Main"
..
..