I agree with you, most of GIT is useless for enterprise development. In a few words, GIT is a super patching tool for coding all over the world and exchanging with you geek friends. The idea behind the bush is that in a respectable cool and open minded community, no central referential should prevail. GIT is all about cloning, retrieving things from others and pushing it it to some friends.
Let's say things in the sharpest way, as compared to SVN, GIT is mainly a political fight.
But just in order to be cool and fashnable, a set of command to blindly apply.
Checkout a remote repository (now you call it clone)
$ git clone
Create a branch locally (before you start to work)
$ git branch
Push the branch on github to let the other know you started a branch. This is an optional step to avoid conflict, since a pranch is automatically pushed when you push a commit.
$ git push origin
Switch your new branch
$ git checkout
Add tracked files to a commit
$ git add files
Commit locally
$ git commit files
Commit remotely
$ git push origin name_of_your_new_branch
Aucun commentaire:
Enregistrer un commentaire