Git clueless - please clarify

I am considering a jump in the git dungeon. My environment is made up of 1-4 Windows client computers and one FreeNAS server.

What do I need for Git to work in this type of configuration?

Is there any git software that I need to install on the server? (for example, in CVS, I do not need to install any software if the repository is available as a Windows share (SMB).

What do I need to install on a client machine (Windows) if I already have Cygwin installed? Is there a precompiled git.exe (like cvs .exe) that takes up much less space than the proposed 130MB MSysGit ?

Do I really need to compile Git binaries in order to have Git on my Windows client?

I absolutely do not know what the transition from the CVS paradigm to the Git paradigm entails. Please come with me. Thanks.

+4
source share
2 answers

Git does not match svn or cvs, since it is "completely distributed", so there are actually no clients and server, only nodes. In your case, you want your “client machines” to point to a remote repo on the NAS, where they can push their changes. You can point to this repo using a variety of methods, including a file, as described here:

http://www.kernel.org/pub/software/scm/git/docs/git-push.html#URLS

In git, all your clients are also nodes, so, for example, developer 1 may have an experimental branch in its repo, which developer2 pulls out for review. This branch does not have to be on the "server". It is both confusing and powerful.

The easiest way to start is simply to follow the client / server model. 4 "clients" pushing changes to the git repository on a shared file server.

Is there a precompiled git.exe (like cvs .exe)

Yes, see here, http://oreilly.com/software-engineering/excerpts/version-control-git/installing-git.html

I also suggest registering for a free github.com account, installing git on one machine and playing, deploying other projects, pulling them out, pushing them, etc.

Maybe if you have an hour to kill, buy http://peepcode.com/products/git screencast to get through though git.

+3
source

On computers in my store, I just:

  • Unzip the portable version of Git for Windows (from the msysgit project ); than 10Mo (different from 130Mo msysgit downloads, which allows you to recompile Git on Windows: you don’t need what you want to do).
  • change <git install dir>/etc/gitconfig to add:
  • uses <git install dir>/git-cmd.bat or <git install dir>/git-bash.bat to open new DOS windows or bash sessions with PATH right in them (and only in them, which means that the global modification User PATH environement variable outside these shells).
+3
source

Source: https://habr.com/ru/post/1339115/


All Articles