2021-05-22 15:28:39 +00:00
|
|
|
# Gitting-Started
|
|
|
|
|
2021-05-22 11:36:42 -04:00
|
|
|
Getting started with Git
|
|
|
|
|
2021-05-22 11:43:00 -04:00
|
|
|
## I recommendd WSL if using Windows. If using mac you already have terminal
|
|
|
|
|
|
|
|
There are GUIs for Git, but I have no experience with them.
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2021-05-22 11:45:15 -04:00
|
|
|
Installing WSL: [HERE](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
|
2021-05-22 11:43:00 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2021-05-22 11:36:42 -04:00
|
|
|
Create SSH Key
|
|
|
|
|
|
|
|
```ssh-keytgen```
|
|
|
|
|
2021-05-22 11:43:00 -04:00
|
|
|
---
|
|
|
|
|
2021-05-22 11:36:42 -04:00
|
|
|
Get SSH public key
|
|
|
|
|
|
|
|
```cat ~/.ssh/id_rsa.pub```
|
|
|
|
|
2021-05-22 11:43:00 -04:00
|
|
|
---
|
|
|
|
|
2021-05-22 11:36:42 -04:00
|
|
|
Add key to gitea
|
|
|
|
|
2021-05-22 11:43:00 -04:00
|
|
|
1. User profile in upper right hand corner
|
|
|
|
|
|
|
|
2. Settings
|
|
|
|
|
|
|
|
3. SSH/GPG Keys
|
|
|
|
|
|
|
|
4. Manage SSH Keys -> Add Key (to the right)
|
|
|
|
|
|
|
|
5. Paste whole key in Content, this should add the SSH Key Name in the name field
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
Now you can do the git stuff
|
|
|
|
|
|
|
|
1. ```git add NEW_FILE```
|
|
|
|
|
|
|
|
2. ```git commit -m 'ADD INFO HERE OF WHAT WAS CHANGED/ADDED'```
|
|
|
|
|
|
|
|
3. ```git push```
|
|
|
|
|
|
|
|
## Your updates will now be pushed, if there's a pipline it might take a while 10/15mins for the update to be shown
|