# Git and Markdown Essentials ## Git **What is Git?** - DVCS (Distributed Version Control System) - Used for code management across developers - Git tree and branches <br> **Workflow** ![workflow](https://hackmd.io/_uploads/S1wyieFfp.png) <br> **Branch System** ![Branch](https://hackmd.io/_uploads/HkvroxKMa.png) <br> **Why do you need Github?** - Collaboration - Github can pose as your portfolio - Version Control for your projects - Free code hosting <br> ## Github - Profile Page - Your status(Very important) - About read me - Contributions - Your repositories - Commits - New Repos <br> ## Introduction to markdown ![hehe](https://i.imgflip.com/840dgn.jpg) **Markdown** - Lightweight - Markup language - Inspired by html **Use Cases** - In github, used extensively for documentations - For onine books in the form of R markdown - In jupyter notebook for code documentation ## Markdown Basics ### Headings - Headings are used to structure your Markdown document. - You can create headings using one to six `#` symbols, with one `#` for the largest heading and six `#` for the smallest. ### Formatting and Links - Use asterisks or underscores to create emphasis (italic or bold) for text: - `*italic*` or `_italic_` for *italic*. - `**bold**` or `__bold__` for **bold**. - Create hyperlinks with `[text](URL)` syntax: - `[Google](https://www.google.com)` for [Google](https://www.google.com). - If we have image links we can easily render them here by using `!` in front of the link. For example: ![Cat](https://www.newshub.co.nz/home/lifestyle/2019/08/the-top-five-cat-memes-of-all-time-rated/_jcr_content/par/video/image.dynimg.1280.q75.jpg/v1565234972425/KNOWYOURMEME-sad-cat-crying-1120.jpg) ### Lists - Create ordered lists using numbers followed by a period. - Create unordered lists using asterisks, plus signs, or hyphens. - You can nest lists by indenting or using additional symbols. ### Tables - Create tables in Markdown using pipes `|` to separate columns and hyphens `-` to define the header. - Example: ```markdown | Header 1 | Header 2 | | -------- | -------- | | Row 1, Cell 1 | Row 1, Cell 2 | | Row 2, Cell 1 | Row 2, Cell 2 | ``` Ex: |Sno.|Person| |--|--| |1|Cool Dude| |2|Cooler Dude| ### Code Blocks - Create code blocks by wrapping code in backticks (\`) or triple backticks (\`\`\`). - Example: ```markdown `inline code` ``` - For code blocks with syntax highlighting, use triple backticks with a language identifier: <pre> <code> ```python def hello(): print("Hello, World!") ``` </code> </pre> Ex: ```python print("This code is epic!") ``` ### Other topics to look further - Markdown note taking can be done using Programs like Obsidian, Logseq that incorporate differnt note taking like Zettlekasten. - Markdown allows us to use Math rendering tools like Latex by using `$' MATH HERE '$` for inline $`x^2 + 3\sqrt{2}x - 5`$ and `$$ MATH HERE $$` $$F = \frac{G * (m1 * m2)}{r^2}$$
{"title":"Introduction to markdown","description":"Markdown","contributors":"[{\"id\":\"462fab7e-3dd7-4b68-8b3b-1d0effedc9cb\",\"add\":494,\"del\":2},{\"id\":\"4a95fdcd-6d57-462d-b542-668540496975\",\"add\":2679,\"del\":159},{\"id\":\"2644ec3f-1856-4057-854c-99ef60fd3850\",\"add\":121,\"del\":0}]"}
    147 views
   Owned this note