Today on the blog of Web design, a presentation of Git and some resources to get you started
Git, as its name does not indicate, is a version control software. You may be familiar with svn, bazaar, …, and well it fulfills the same functions (only better ^^).
If you do not know, let me explain the concept with three situations.
Go back to a modification
Have you ever lost a file by mistake, or want to go back, just before the last changes made? This is possible with Git.
Git will allow you, once installed in a folder, save all changes made to files in the form of commit. You choose the files you want to include the changes, you put a little comment message, and you save the commit. You can then return to the state of the file before the commit, then reapply. A kind of ctrl-z / ctrl-y in short.
Do tests without duplicating his record
Have you ever wanted to try something that might break your project, while hoping to do in the main folder, without having to copy and paste the full dossier? Git can do that too.
Git allows you to create branches in your file. To test your functionality, create a branch. If the test is successful, you can apply some or all commit performed in the test plugs into your main branch. Otherwise, it removes the branch and talk about it more.
Have you ever worked on a two FTP, on the same file, and crushed changes your colleague without purpose? This can not happen with Git.
Git allows you to synchronize the status of your project between several computers and servers. So you can work on your local and push your changes to the server once they are tested and they work. If someone pushed its own modifications, it will “merger”, ie blend the two branches of the project. Most of the time the operation is transparent.
(Note that svn & co can also help in these situations, but they are less well (trollolo))
Start with Git
So, want to try? The first thing to do is install it. If you are on a * nix, I think I can say without worry that your package manager known as the git. If you summers on windows, you will find a version for you here: http://code.google.com/p/msysgit/ .
For the rest, I give you some resources to get you started.
A very good tutorial to learn git.
Github is a magical place, a sort of social network encoder. Here you can create your git repositories for open source projects, and participate in existing projects.
Legit is a small program that aliases some rather hairy git commands into something easier to remember for an average human being.