Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.57 KB

git_setup.rst

File metadata and controls

64 lines (40 loc) · 1.57 KB

Setting Up Git

Installing Git

Depending on your platform, use the following to install Git:

Linux
See :ref:`spkg_git` for the installation command on your Linux distribution.
Windows (WSL)
We strongly recommend to install the package using the Linux distribution's package manager. Native Windows installations of Git may also work, but there are possible pitfalls.
macOS
Install the Xcode Command Line Tools.

Some further resources for installation help are:

Configuring Git

Assuming your name alice and email address alice@wonderland.com,

[alice@localhost ~]$ git config --global user.name "Alice Adventure"
[alice@localhost ~]$ git config --global user.email alice@wonderland.com

This will write the settings into your Git configuration file ~/.gitconfig with your name and email:

[user]
    name = Alice Adventure
    email = alice@wonderland.com

Of course, replace Alice Adventure and alice@wonderland.com with your actual name and email address.

This is the basic Git configuration for now. For further tips on configuring Git, see :ref:`section-git-configuration`.