Page 1 of 1

About the Agent Git Plug-in

Posted: Wed Feb 21, 2024 12:36 pm
by jussij
To understand how Git and Agent Git work, consider the following.

Git is a distributed source control meaning there will always be more than one repository, and no central source of truth like Subversion.

For example, consider a project hosted on GitHub:

1. There will be a repo found on GitHub.
2. There will be another repo found on the machine, cloned from GitHub on a given developer's machine.
3. That means every other member of the development team will also have a repo on their local machine cloned from that same GitHub repo.

Now to move changes between all of these local repos will requires a tool like Git or Tortoise Git and this is done using Git push, pull and clone commands.

Agent Git doesn't handle any of these inter-repo changes, except for the latest version of Agent Git which does provide an option to push changes back to the GitHub repo on any check-in. That feature is also optional.

So what exactly does Agent Git do?

Agent Git manages the repo found on the local machine.

More specifically, Agent Git manages the changes between that local repo and the local working copy.

It manages local file changes and helps to move those changes in and out of that local repo.

Once all the local changes are complete, Agent Git lets the uses move those local working copy changes back into the local repo, and then using a tool like Tortoise Git those changes can then be pushed back to the GitHub repo.

Cheers Jussi