mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
git guide updates
This commit is contained in:
parent
b63af15f82
commit
02caa68435
@ -75,15 +75,31 @@ usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
|
|||||||
<and more...>
|
<and more...>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Create directory for our repositories
|
||||||
|
|
||||||
|
I would highly recommend to create a folder where you want to store your GIT repositories. </br>
|
||||||
|
This may be in your USER, HOME folder, or you could create it on `C:\` if you are using Windows. </br>
|
||||||
|
This is entirely up to you.
|
||||||
|
|
||||||
|
Windows:
|
||||||
|
```
|
||||||
|
cd C:\
|
||||||
|
mkdir gitrepos
|
||||||
|
```
|
||||||
|
Linux:
|
||||||
|
```
|
||||||
|
mkdir ~/gitrepos
|
||||||
|
```
|
||||||
|
|
||||||
## Configure GIT
|
## Configure GIT
|
||||||
|
|
||||||
We firstly have to tell GIT who we are. </br>
|
We firstly have to tell GIT who we are. </br>
|
||||||
For this we set a username and an email. </br>
|
For this we set a username and an email. </br>
|
||||||
This is very important especially when we are planning to host our repository on Github or another source control provider </br>
|
This is very important especially when we are planning to host our repository on Github or another source control provider </br>
|
||||||
|
|
||||||
Remember the command `git help -a` which shows us all the available commands ? </br>
|
Remember the command option `-h` which shows us all the available options and help text for a command? </br>
|
||||||
The one we want to start off with is `git config` </br>
|
The one we want to start off with is `git config` </br>
|
||||||
note: `git config -a` Also has a `-a` to view all options </br>
|
note: `git config -h` Has help texts that describes how we can use the command </br>
|
||||||
|
|
||||||
We can configure GIT either globally, so which account to use for all repositories by using the `--global` flag, or only for a single repository by using the `--local` flag :
|
We can configure GIT either globally, so which account to use for all repositories by using the `--global` flag, or only for a single repository by using the `--local` flag :
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user