Nick Leffler 4b0dbf9280 | ||
---|---|---|
README.md |
README.md
Gitting-Started
Getting started with Git
I recommend WSL 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
I recommend Debian OR Alpine
Alpine Linux: HERE
Debian Linux: HERE
Create SSH Key
ssh-keygen
Get SSH public key
cat ~/.ssh/id_rsa.pub
Add key to gitea
-
User profile in upper right hand corner
-
Settings
-
SSH/GPG Keys
-
Manage SSH Keys -> Add Key (to the right)
-
Paste whole key in Content, this should add the SSH Key Name in the name field
Clone git repo
-
Find repo you want
-
Switch to SSH option in cloning
-
git clone URL_HERE
Now you can do the git stuff
-
I always do a
git pull
to make sure the repo is up to date just in-case anyone has made changes -
git add NEW_FILE
orgit add .
if you'd like to add all files with changes -
git commit -m 'ADD INFO HERE OF WHAT WAS CHANGED/ADDED'
| If you'd like to push some changes, but not run the pipeline you can just add[skip ci]
anywhere in the commit message -
git push
Your updates will now be pushed, if there's a pipline it might take a while 10/15mins for the updates to be shown
Other useful git stuff
View status of repo (how far ahead/behind from master/main) | git status
View differences | git diff