Difference between revisions of "Open Source Comes to Campus/Curriculum/Laptop setup/Windows git"

From OpenHatch wiki
Jump to navigation Jump to search
imported>Shauna
(Use git-scm.com which auto-calculates the best Windows version I guess but is an annoying drive-by download but oh well OK)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
== Just one step ==
 
== Just one step ==
  
To install git on Windows, download and install this .exe.
+
To install git on Windows, download and install via .exe.
  
 
'''Note''': It will ask you a bunch of questions. It is a good idea to accept the defaults.
 
'''Note''': It will ask you a bunch of questions. It is a good idea to accept the defaults.
  
* https://msysgit.googlecode.com/files/Git-1.8.1.2-preview20130201.exe
+
* https://git-scm.com/download/win
 +
[[File:git1.png]]
  
You'll also want to tell git your name and email address. To do this, type:
+
[[File:git2.png]]
  
     git config --global user.name "your-user-name"
+
[[File:git3.png]]
 +
 
 +
[[File:git4.png]]
 +
 
 +
[[File:git5.png]]
 +
 
 +
[[File:git6.png]]
 +
 
 +
[[File:git7.png]]
 +
 
 +
[[File:git8.png]]
 +
 
 +
[[File:git9.png]]
 +
 
 +
Once that is installed, launch '''Git Bash''' by doing:
 +
 
 +
* Start -> All Programs -> Git -> Git Bash
 +
 
 +
[[File:git10.png]]
 +
 
 +
== Set your user name and email ==
 +
 
 +
You'll also want to tell git your name and email address.  To do this, type the following into '''Git Bash''':
 +
 
 +
     git config --global user.name "Your Name"
 
     git config --global user.email "your email"
 
     git config --global user.email "your email"
 +
 +
[[File:git11.png]]
  
 
You can test that they've successfully been set by typing:
 
You can test that they've successfully been set by typing:
  
     git config --global user.name "your-user-name"
+
     git config --global user.name
 
     git config --global user.email
 
     git config --global user.email
 +
 +
For each line above, it should print the settings that you chose.
 +
 +
[[File:git12.png]]
 +
 +
== Sign up for a Github account ==
 +
 +
You can do so at [https://github.com/users this link].
  
 
== Return to laptop setup ==
 
== Return to laptop setup ==
  
 
« [[../|Return to laptop setup]]
 
« [[../|Return to laptop setup]]

Latest revision as of 05:25, 2 December 2018

Just one step[edit]

To install git on Windows, download and install via .exe.

Note: It will ask you a bunch of questions. It is a good idea to accept the defaults.

Git1.png

Git2.png

Git3.png

Git4.png

Git5.png

Git6.png

Git7.png

Git8.png

Git9.png

Once that is installed, launch Git Bash by doing:

  • Start -> All Programs -> Git -> Git Bash

Git10.png

Set your user name and email[edit]

You'll also want to tell git your name and email address. To do this, type the following into Git Bash:

   git config --global user.name "Your Name"
   git config --global user.email "your email"

Git11.png

You can test that they've successfully been set by typing:

   git config --global user.name
   git config --global user.email

For each line above, it should print the settings that you chose.

Git12.png

Sign up for a Github account[edit]

You can do so at this link.

Return to laptop setup[edit]

« Return to laptop setup