![]() Open the Git Bash command window though your start menu. We are concerned right now with what we call the global configuration, where we provide values for your default user configuration. We’ll look more closely at this momentarily. For example, you can override the global user name and email address values (global here, again, means user-level) within a specific repository by setting them in the repository-level configuration file. ![]() Note that configuration settings in each more specific level override those in the level above. git directory of the specific repository or folder. Each repository also contains a configuration file, specific to that repository, which is located in the.This is where your Username and email address values are generally set up, and will maintain default configuration settings for your repo’s. The global user-level configuration file, which is specific to the individual user, and usually resides in the user’s home folder (Usually, but not always, C:\Documents and Settings\).This file is usually created in a directory relative to the msysgit installation directory. The highest order configuration file contains system-level configuration values for all users, and all repositories on the system.Git maintains several configuration files: Now that Git is installed on your Windows machine, you need to do some basic configuration. What next? Configuring Git on your Windows Machine Great! You now have Git installed on your windows machine. This should only take a minute or so (or less). I recommend the default option, which should be “Checkout Windows-style, commit Unix-style line endings.” This option offers the greatest flexibility if you will be sharing your code with others.Ĭlick next, and the installation will start. ![]() Unix/Linux systems use a different convention for line endings than Windows. I figure, it can only help me as a developer to become fluent with the world of the *nix Bash command line, and the hybrid environment(s) created by the other two options seem more like a potential source of irritation than anything else. Personally, I prefer to use Git Bash only. Of the three options available here, which you choose will depend upon your comfort level with the windows command line. Now click Next again: Command Line Environment The default values here should be fine, but make sure that the “Windows Explorer Integration” item is checked, and that “Git Bash Here” and “Git GUI Here” are selected. The next window is the installation components window: Installation Components Click next to move through the “Welcome to the Git Setup Wizard” splash/greeting window, and again to accept the license terms. You can ignore the ominous warning, and click the “Run” button. When you first run the downloaded installer, you may be greeted with a security warning about unknown publisher and such.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |