How-To-Git-Started/README.md

30 lines
560 B
Markdown
Raw Normal View History

2020-01-08 12:52:06 +00:00
# How to Git started
## Set up git
Set up your git info
2020-01-08 12:55:14 +00:00
```shell
2020-01-08 12:52:06 +00:00
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
```
If you want to save your https credentials run
2020-01-08 12:55:14 +00:00
```shell
2020-01-08 12:52:06 +00:00
git config --global credential.helper store
2020-01-08 12:54:15 +00:00
Omit --global to set the identity only in this repository.
2020-01-08 12:52:06 +00:00
```
2020-01-08 13:03:33 +00:00
## Saving changes
unstage by using
```shell
use "git reset HEAD <file>..." to unstage
```