This is a step by step guide to getting GIT working in Windows.
Note where I show a $ what follows is what you should type after the BASH $ command prompt.
I would recommend taking a look at this great set of video tutorials about git: http://learn.github.com/p/intro.html
Download and install git for Windows from http://git-scm.com/downloads
Signup for github.com to store your git repositories conveniently online at https://github.com/ (Micro service is $7/month at time of writing, 22/9/12) - Alternatively, https://bitbucket.org/ provides free private git repositories for up to 5 users
Download and install github for Windows from http://windows.github.com/
Sign into the github application with your github.com account, log in is at the top right of the application window
Create a new repository in the github application and make the first commits that the github application prompts you to make: .gitattributes and .gitignore
Configuring git on your local server
Make sure that git is installed on your server. I did this by installing the git web application in the Webfaction (my host) control panel.
Open the gitbash program – this will give you the $ command line
Add your name - $ git config --global user.name “Your Name”
Add your e-mail - $ git config --global user.email “firstname.lastname@example.org”
- Your new site's homepage will look like this.
- Look at the URL. This includes your site name.
- Congratulations!!! You finished installing Drupal on your machine.
- Click on 'Visit your new site' link to view homepage of your site.
- Here is most important page of Drupal installation process.
- As you can see there are few fields. Lets explore them one by one:
- 1. Site name: Here you can enter your website name but by default its 'localhost'.
- 2. Site e-mail address: This is an email id which is used by an organization to send their official emails. For ex.: email@example.com
- 3. Username: Name of core user is expected in this field. Best practice is to mention 'admin' in this field. Because admin has all the rights to manage the site.
- 4. E-mail address: Can be anything. You can provide your personal email id also.
- 5. Password: Admin password. Necessary for managing all site.
- 6. Confirm password: Confirm password for checking whether you typed it properly or not.
- Scroll down and click 'Save and continue' button.
- After configuring database, you will see Drupal installation progress page.
- Now you are at one of the most important step of Drupal installation.
- Do you remember, I told you to note down database name which we created in Step 7?
- On this page you will see 4 (four) different fields related to database. Lets go through them one by one:
- 1. Database Type: Select first option i.e. MySQL, MariaDB or equivalent
- 2. Database Name: In this example it's 'dbpractice'.
- 3. Database Username: I mentioned 'root' because mostly MySQL database accepts this username. It also signifies that you are the root user of this database. Also quite easy to remember (Isn't it?).
- 4. Database Password: Not a mandatory field so you can leave it blank if you want. But if you mention any password in this field then keep a record of it because if you forget this password then you cannot access your database.
- Click on 'Save and Continue' button.