Skip to content

Commit 8ed3f3f

Browse files
committed
Updating git instructions.
1 parent fcad4b3 commit 8ed3f3f

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

software/git.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ If you have done so, you can put git-proxy \~/bin. Make sure you have modified i
3838

3939
3\) Add the following line to your `~/.gitconfig` file
4040

41-
```
41+
```.gitconfig
4242
[core]
4343
gitProxy = git-proxy
4444
```
@@ -63,16 +63,7 @@ git config --global url."https://github.com/".insteadOf git@github.com:
6363
ssh can be used to clone repositories on the login node. In order to clone repositories on the internal nodes, the ssh config needs to be changed to use the login node as a proxy jump. Here is an example ssh config with jump proxies to code.ornl.gov, bitbucket.org, and github.com.
6464

6565
```config
66-
Host code.ornl.gov
67-
HostName code.ornl.gov
68-
ProxyJump login
69-
70-
Host bitbucket.org
71-
HostName bitbucket.org
72-
ProxyJump login
73-
74-
Host github.com
75-
HostName github.com
66+
Host code.ornl.gov bitbucket.org github.com
7667
ProxyJump login
7768
```
7869

@@ -99,9 +90,9 @@ cat ~/.ssh/id_rsa.pub
9990
```
10091

10192
3. Copy the output of the command and paste it into the SSH key section of your GitLab account settings.
102-
![code-ornl-user-preferences](../assets/code-ornl-user-preferences.png)
93+
![code-ornl-user-preferences](../assets/code-ornl-user-preferences.png)
10394
![code-ornl-ssh-keys.png](../assets/code-ornl-ssh-keys.png)
10495

10596
4. If you are on an ExCL system and you have not already done so, configure your SSH client to use the login node as a jump proxy. See [Git SSH Access](#git-ssh-access) for more information.
10697

107-
If you use a passphrase with your SSH key (recommended for security), then you should also setup an SSH Agent to load the SSH key. This allows you to enter your passphrase once for the session without needing to enter your passphrase potentially many times for each git command. The VS Code documentation is well written for setting up this SSH Agent on a variety of platforms, see [Visual Studio Code Remote Development Troubleshooting Tips and Tricks](https://code.visualstudio.com/docs/remote/troubleshooting#_setting-up-the-ssh-agent).
98+
If you use a passphrase with your SSH key (recommended for security), then you should also setup an SSH Agent to load the SSH key. This allows you to enter your passphrase once for the session without needing to enter your passphrase potentially many times for each git command. The VS Code documentation is well written for setting up this SSH Agent on a variety of platforms, see [Visual Studio Code Remote Development Troubleshooting Tips and Tricks](https://code.visualstudio.com/docs/remote/troubleshooting#_setting-up-the-ssh-agent).

0 commit comments

Comments
 (0)