summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2019-08-07 04:01:11 +0000
committerEvan Read <eread@gitlab.com>2019-08-07 04:01:11 +0000
commit67c6708ff67df07e18e6097dd05937f99992af3a (patch)
tree77bba77e283d87c228c06a95b8f09ee7558e44f4
parent4bbf94201085defb9bcbca3d577c2752f4e3b35b (diff)
parentb6cb595d39f78a6297e7051319a9632a4013e4e7 (diff)
downloadgitlab-ce-67c6708ff67df07e18e6097dd05937f99992af3a.tar.gz
Merge branch 'docs-followup-git-tricks' into 'master'
Follow-Up: Change code blocks to shell type Closes #65605 See merge request gitlab-org/gitlab-ce!31526
-rw-r--r--doc/topics/git/useful_git_commands.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/topics/git/useful_git_commands.md b/doc/topics/git/useful_git_commands.md
index 84406805350..030e62f485a 100644
--- a/doc/topics/git/useful_git_commands.md
+++ b/doc/topics/git/useful_git_commands.md
@@ -149,7 +149,7 @@ gitk --follow <file>
### Use a custom SSH key for a git command
-```text
+```sh
GIT_SSH_COMMAND="ssh -i ~/.ssh/gitlabadmin" git <command>
```
@@ -157,13 +157,13 @@ GIT_SSH_COMMAND="ssh -i ~/.ssh/gitlabadmin" git <command>
With SSH:
-```text
+```sh
GIT_SSH_COMMAND="ssh -vvv" git clone <git@url>
```
With HTTPS:
-```text
+```sh
GIT_TRACE_PACKET=1 GIT_TRACE=2 GIT_CURL_VERBOSE=1 git clone <url>
```