Gitting-Started/README.md
2021-05-22 11:46:49 -04:00

50 lines
890 B
Markdown

# Gitting-Started
Getting started with Git
## I recommendd WSL and using Debian or Alpine Linux if using Windows. If using mac you already have terminal
There are GUIs for Git, but I have no experience with them.
---
Installing WSL: [HERE](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
---
Create SSH Key
```ssh-keytgen```
---
Get SSH public key
```cat ~/.ssh/id_rsa.pub```
---
Add key to gitea
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