From 9a379a5b7d7f952da9e5153e91832ef921b8b052 Mon Sep 17 00:00:00 2001 From: Luke Richardson Date: Sun, 27 Oct 2024 15:27:08 +0000 Subject: [PATCH 1/2] git basics --- docs/Net-Auto/intro-to-version-control.md | 67 +++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/docs/Net-Auto/intro-to-version-control.md b/docs/Net-Auto/intro-to-version-control.md index 55e6546..fb348fb 100644 --- a/docs/Net-Auto/intro-to-version-control.md +++ b/docs/Net-Auto/intro-to-version-control.md @@ -16,6 +16,73 @@ tags: Please check back later for updates. +## Git Basics + +Git is a distributed version control system that helps track changes in source code during software development. It's essential for collaborative work and managing complex projects. + +### Key Concepts + +1. **Repository**: A container for your project, including all files and their version history. +2. **Commit**: A snapshot of your project at a specific point in time. +3. **Branch**: An independent line of development, allowing you to work on features without affecting the main codebase. +4. **Remote**: A version of your repository hosted on a server (GitHub, GitLab). + +### Essential Commands + +1. **Initialize a Repository** + ``` + git init + ``` + +2. **Clone a Repository** + ``` + git clone + ``` + +3. **Check Status** + ``` + git status + ``` + +4. **Stage Changes** + ``` + git add + ``` + or stage all changes: + ``` + git add . + ``` + +5. **Commit Changes** + ``` + git commit -m "Your commit message" + ``` + +6. **Push Changes to Remote** + ``` + git push origin + ``` + +7. **Pull Changes from Remote** + ``` + git pull origin + ``` + +8. **Create and Switch to a New Branch** + ``` + git checkout -b + ``` + +9. **Switch Between Branches** + ``` + git checkout + ``` + +10. **View Commit History** + ``` + git log + ``` + ## Pull Requests A workflow that uses feature branches and pull requests (PRs) is a sane way to manage a codebase, collaborate with others, and maintain a clean main branch. From be794b0490f0f65ce5d0fa63f9dade467a9981be Mon Sep 17 00:00:00 2001 From: Luke Richardson Date: Sun, 27 Oct 2024 15:34:30 +0000 Subject: [PATCH 2/2] comment out YT intro vid --- docs/index.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/index.md b/docs/index.md index 0cceb95..7b628f5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,7 +8,11 @@ hide: #level: --- + + +# :material-party-popper: Welcome to Luke Richardson's Pages I'm [Luke](https://www.linkedin.com/in/luke-richardson/). A former [Network Architect](https://en.wikipedia.org/wiki/Network_architecture#:~:text=Network%20architecture%20is%20the%20design,well%20as%20communication%20protocols%20used.) pursuing Technical Management opportunities in London. @@ -17,6 +21,7 @@ I'm [Luke](https://www.linkedin.com/in/luke-richardson/). A former [Network Arch --- + :material-checkbox-marked-outline: Here you will find my [Resume](Hire-Me/index.md), my new [Blog](blog/index.md), and some [Network](Net-Auto/index.md) related content.