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. 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.