• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. Skara
  4. FAQ

Page History

Versions Compared

Old Version 42

changes.mady.by.user Erik Helin

Saved on Apr 16, 2020

compared with

New Version 43

changes.mady.by.user Erik Helin

Saved on Apr 16, 2020

  • Previous Change: Difference between versions 41 and 42
  • Next Change: Difference between versions 43 and 44
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Yes, by adding a host alias for github.com in your SSH configuration file ~/.ssh/config (C:\Program Files\Git\etc\ssh\ssh_config on Windows). Add the following lines to ~/.ssh/configthe SSH configuration file:

Code Block
languagetext
Host github.com github gh
User git
Hostname github.com

...

Code Block
languagebash
$ git clone github.com:openjdk/jdk
$ git clone github:openjdk/jdk
$ git clone gh:openjdk/jdk

My computer is behind

...

an HTTP(S) proxy, can I still clone using SSH?

Yes, by adding a ProxyCommand directive in your SSH configuration ~/.ssh/config. The value for ProxyCommand is operating system dependent, since different programs are available on different operating systems. Please follow the instructions specific for your operating system below:

...

Substitute PROXY-HOSTNAME with the hostname of the HTTP(S) proxy server, and PROXY-PORT with the port of the HTTP(S) proxy server. Note that the full path to nc must be used since Homebrew might install the GNU version of nc (which does not support the -X flag).

Windows

Add the following lines to C:\Program Files\Git\etc\ssh\ssh_config:


Code Block
languagebash
Host github.com github gh
  User git
  Hostname github.com
  ProxyCommand C:\Program Files\Git\mingw64\bin\connect.exe -H PROXY-HOSTNAME:PROXY-HOST %h %p


Substitute PROXY-HOSTNAME with the hostname of the HTTP(S) proxy server, and PROXY-PORT with the port of the HTTP(S) proxy server. Note that the program connect.exe is part of Git for Windows, if you install Git via some other mechanism then you might have to install connect.exe yourself.

Shell

Bash

Can I see the currently checked out local branch in my prompt?

...

Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.23
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 500, "requestCorrelationId": "5372b53b8570e2f8"}