slides: enhance content layout and improve visual alignment

This commit is contained in:
Nanda128 2025-09-23 00:27:01 +01:00
parent 66b821ed13
commit b8703bf5b2

View file

@ -21,17 +21,20 @@ Git
* Git is a tool made for (usually) us programmers to track the work we've done. * Git is a tool made for (usually) us programmers to track the work we've done.
<!-- end_slide --> <!-- end_slide -->
Sold Separately
================================= =================================
<!-- alignment: center -->
Programmer socks (not) included. Programmer socks (not) included.
![image:width:100%](intro_to_git/compsocks.png) ![image:width:100%](intro_to_git/compsocks.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
Why Git Why Git
================================= =================================
<!-- alignment: center -->
<!-- incremental_lists: true --> <!-- incremental_lists: true -->
@ -52,6 +55,7 @@ Why Git
Code Storage Code Storage
================================= =================================
<!-- alignment: center -->
<!-- incremental_lists: true --> <!-- incremental_lists: true -->
* This place is called a Repository. * This place is called a Repository.
@ -62,20 +66,20 @@ Code Storage
* Why not use SVN? * Why not use SVN?
* The answer is simple. * The answer is simple.
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
No. No.
================================= =================================
<!-- alignment: center -->
![image:width:100%](intro_to_git/NAH.jpg) ![image:width:100%](intro_to_git/NAH.jpg)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
WHY don't we use SVN WHY don't we use SVN
================================= =================================
<!-- alignment: center -->
<!-- incremental_lists: true --> <!-- incremental_lists: true -->
* An actual answer is that Git is Distributed, and SVN in centralized. * An actual answer is that Git is Distributed, and SVN in centralized.
@ -87,166 +91,154 @@ WHY don't we use SVN
* Back to git. * Back to git.
* Let's start with the basics. * Let's start with the basics.
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
Live demonstration time Live demonstration time
================================= =================================
<!-- font_size: 5 --> <!-- font_size: 5 -->
<!-- alignment: center -->
* Please get your laptops out * Please get your laptops out
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
How to download Git & Git LFS How to download Git & Git LFS
================================= =================================
<!-- alignment: center -->
## Download ## Download
<<https://git-scm.com/downloads>> <<https://git-scm.com/downloads>>
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
![image:width:100%](intro_to_git/git_download_button.png) ![image:width:100%](intro_to_git/git_download_button.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
![image:width:100%](intro_to_git/git_installer.png) ![image:width:100%](intro_to_git/git_installer.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
![image:width:100%](intro_to_git/git_installer_notepad_as_default_editor.png) ![image:width:100%](intro_to_git/git_installer_notepad_as_default_editor.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
![image:width:100%](intro_to_git/git_installer_rename_master_to_main.png) ![image:width:100%](intro_to_git/git_installer_rename_master_to_main.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
![image:width:100%](intro_to_git/git_installer_checkout_unix.png) ![image:width:100%](intro_to_git/git_installer_checkout_unix.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
![image:width:100%](intro_to_git/git_installer_default_rebase_pull.png) ![image:width:100%](intro_to_git/git_installer_default_rebase_pull.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
<https://forgejo.skynet.ie/Skynet/deploy_user> <https://forgejo.skynet.ie/Skynet/deploy_user>
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
Don't do these types of commit messages Don't do these types of commit messages
================================= =================================
<!-- alignment: center -->
![image:width:100%](intro_to_git/bad_message.png) ![image:width:100%](intro_to_git/bad_message.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
![image:width:100%](intro_to_git/forgejo_template_button.png) ![image:width:100%](intro_to_git/forgejo_template_button.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
![image:width:100%](intro_to_git/forgejo_template_repo_creation.png) ![image:width:100%](intro_to_git/forgejo_template_repo_creation.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
![image:width:100%](intro_to_git/forgejo_repo_link.png) ![image:width:100%](intro_to_git/forgejo_repo_link.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
LFS Install LFS Install
================================= =================================
<!-- alignment: center --> <!-- alignment: center -->
<!-- end_slide -->
LFS Install <https://git-lfs.com/>
=================================
````bash Same deal as before, just download and install.
git lfs install It'll ask to be ran as Administrator, say yes.
````
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
Setup SSH key (see Readme.md) Setup SSH key (see Readme.md)
================================= =================================
<!-- alignment: center --> <!-- alignment: center -->
<!-- end_slide -->
![image:width:100%](intro_to_git/forgejo_repo_settings.png) ![image:width:100%](intro_to_git/forgejo_repo_settings.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
![image:width:100%](intro_to_git/forgejo_secrets_location.png) ![image:width:100%](intro_to_git/forgejo_secrets_location.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
![image:width:100%](intro_to_git/forgejo_add_secret.png) ![image:width:100%](intro_to_git/forgejo_add_secret.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
![image:width:100%](intro_to_git/forgejo_ssh_key_example.png) ![image:width:100%](intro_to_git/forgejo_ssh_key_example.png)
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
````bash ```bash
git init git init
git remote add origin <repo_url> git remote add origin <repo_url>
git pull origin <branch_name> git pull origin <branch_name>
git add <file_name> git add <file_name>
git commit -m "<commit_message>" git commit -m "<commit_message>"
git push origin <branch_name> git push origin <branch_name>
```` ```
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
<!-- alignment: center -->
``https://<username>.users.skynet.ie/`` ``https://<username>.users.skynet.ie/``
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
TroubleShooting TroubleShooting
================================= =================================
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
If you see this: If you see this:
================================= =================================
<!-- alignment: center -->
![image:width:100%](intro_to_git/permission_denied_publickey.jpg) ![image:width:100%](intro_to_git/permission_denied_publickey.jpg)
> Credit: Geeks for Geeks > Credit: Geeks for Geeks
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->
Go here Go here
================================= =================================
<!-- alignment: center -->
<https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent> <https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent>
<!-- alignment: center -->
<!-- end_slide --> <!-- end_slide -->