From 78e6630611ce0510e09e4f3ccf336a3319c807a0 Mon Sep 17 00:00:00 2001 From: Jiri Hubacek Date: Wed, 10 Oct 2018 15:11:58 +0200 Subject: [PATCH] Expand init section in introduction --- intro.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/intro.md b/intro.md index d3ab15e..85dc410 100644 --- a/intro.md +++ b/intro.md @@ -10,6 +10,32 @@ Also, just after first commit, you may be asked to set up your name and email address with `git config ...` command. If `--global` is used the name and/or email will be automatically used for all the commits. +## Command `git clone` +Copy existing repository that is available online from some server to local +directory. +``` +git clone ssh://git@rtime.felk.cvut.cz/hubacji1/oneflow.git +``` + +## Command `git init` +Initialize directory to be able to use git commands. +``` +git init +``` + +## Command `git config` +Setting up your name and email address is required at minimal. +``` +git config user.name "Your Name" +git config user.email you@example.com +``` + +If the name and email should persist as default for any other git repository: +``` +git config --global user.name "Your Name" +git config --global user.email you@example.com +``` + # Explore - check out the repository history The command that show the whole history is `git log`. The history is build from commits - changes to files in row scale. -- 2.39.2