Git and GitHub

strantor

Joined Oct 3, 2010
6,875
I found GIT bewildering. I understand its purpose and it seems like a very good concept, but implementing it, I found, is probably something it makes sense to get some professional training in.

At the request of someone who is sorta/sorta-not my superior at work, I've tried using it for my python projects. Trying to figure it out was doubling my development time. I threw my hands up and said "I have more important things to do. I will comply, but not now." The IDE that I use is Pycharm, which has GIT support built in. That seems like it would be cool if I could figure it out.

I was wondering if GIT could be used for PLC programs.
 

MrSoftware

Joined Oct 29, 2013
2,273
git can be used with anything, it's just a source control tool. You can use it for emails and photos if you really want to. The main advantage of git as compared to tools like svn, is you take an entire copy of the repository with you. There's no need to be connected to the server all the time. So you always have history with you; checkin logs, old versions, etc.. it's all there on your local computer. Then when you can, you sync with the server, which means a combination of pulling changes from the server, merging those changes with your code, then pushing the result to the server.

In my experience, git integration into IDE's is horrible to say the least. Get a much nicer tool and things will be a lot easier to start. My personal favorite is Tortoise Git (free opensource). It integrates with windows explorer, and you right-click on files/folders to access it.
 

Thread Starter

ApacheKid

Joined Jan 12, 2015
1,762
I found GIT bewildering. I understand its purpose and it seems like a very good concept, but implementing it, I found, is probably something it makes sense to get some professional training in.

At the request of someone who is sorta/sorta-not my superior at work, I've tried using it for my python projects. Trying to figure it out was doubling my development time. I threw my hands up and said "I have more important things to do. I will comply, but not now." The IDE that I use is Pycharm, which has GIT support built in. That seems like it would be cool if I could figure it out.

I was wondering if GIT could be used for PLC programs.
The tool of choice is SmartGit, I've used it for years and rarely ever use command line.
 

Thread Starter

ApacheKid

Joined Jan 12, 2015
1,762
I've never worked on this tool. I have seen many job description for embedded engineer they ask for experience about Git tools. I have never really needed it yet. When should I use this tool to create an embedded project and where what should I use it for ?
Use it all the time, after all a git repository is just a folder tree. Use SmartGit, with this tool you can see your repo very much like Windows file explorer. But instead of showing files inside folders it shows changes to files, or new files or deleted or renamed files.

The changes it shows are always relative the preceding commit on the branch you happen to be on, so when you commit all changes the file view looks empty, until once again you start to make further changes.
 
Top