summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Amirault <mamirault@gitlab.com>2019-08-06 21:35:15 +0900
committerMarcel Amirault <mamirault@gitlab.com>2019-08-06 21:35:15 +0900
commit531cd00c6a35170fa6c565e289f3e369ebf89332 (patch)
treedad737603f44c020fef405a0dbbb600fb8e53035
parent3c03db1290298cbefb7c4bb533d424eda536a4c6 (diff)
downloadgitlab-ce-docs-followup-git-tricks.tar.gz
Change code blocks to shell typedocs-followup-git-tricks
-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>
```