newdevs:git:install
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| newdevs:git:install [2021/03/04 16:10] – [3. Choose a Text Editor] tmccanna | newdevs:git:install [2023/12/13 15:03] (current) – tmccanna | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== Git for Windows ====== | ====== Git for Windows ====== | ||
| - | ===== Installation and Configuration ===== | + | //If you are running Evergreen on an Ubuntu virtual machine, git should already be installed, but this will allow you to code on a Windows machine without a virtual machine. The git commands will be the same regardless of the environment.// |
| + | ===== Installation and Configuration ===== | ||
| ==== 1. Create an SSH Key ==== | ==== 1. Create an SSH Key ==== | ||
| Line 29: | Line 30: | ||
| * Open Git Bash. | * Open Git Bash. | ||
| * At the prompt, type "git version" | * At the prompt, type "git version" | ||
| - | * Set up your user name and password with these commands: | + | * Set up your user name and password with these commands: <code bash>git config --global user.name " |
| - | <code bash> | + | git config --global user.email " |
| - | git config --global user.name " | + | - Add your key <code bash> |
| - | git config --global user.email " | + | - If the SSH key you use for this Git repo isn't located at: ~/ |
| - | </ | + | Host git.evergreen-ils.org |
| + | IdentityFile=< | ||
| **Navigating Within Git Bash** | **Navigating Within Git Bash** | ||
| Line 59: | Line 61: | ||
| * On the Advanced tab, click Environment Variables | * On the Advanced tab, click Environment Variables | ||
| - In the System variables section, select the Path variable and click Edit. | - In the System variables section, select the Path variable and click Edit. | ||
| - | - At the end of the existing Path variable, type a semicolon and then enter the Notepad++ file path (found above). | + | - At the end of the existing Path variable, type a semicolon and then enter the Notepad++ file path (found above). |
| - Verify that Git Bash recognizes the new command. | - Verify that Git Bash recognizes the new command. | ||
| - Open Git Bash. | - Open Git Bash. | ||
| Line 83: | Line 85: | ||
| ==== 4. Clone the Evergreen Repository ==== | ==== 4. Clone the Evergreen Repository ==== | ||
| + | |||
| + | //Note that these steps assume you have read-only access to origin and write access to working.// | ||
| - Create a folder to store your repositories / branches (for example, C: | - Create a folder to store your repositories / branches (for example, C: | ||
newdevs/git/install.1614892256.txt.gz · Last modified: 2022/02/10 13:34 (external edit)