Generating a new SSH key
ssh-keygen -t ed25519 -C "[email protected]"
Adding your SSH key to the ssh-agent
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
Installing Git
sudo pacman -S git
Configuring Git
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
Creating a Repository
git init
Cloning a Repository
git clone <repository_url>
Git Remote
git remote add <new_git-Repo-url>
git remote -v
git push origin main
Checking Status
git status
Adding Changes
git add .
Committing Changes
git commit -m "Your commit message"
Branches
git branch <branch_name>
git checkout <branch_name>
git checkout -b <new_branch_name>
Merging Branches
git merge <branch_name>
Pushing and Pulling
git push origin main
git pull origin main
Git Log
git log
Even though this text is written on two separate lines, it is parsed as a single paragraph.
This paragraph is separated from the previous paragraph by a blank line.
The underscores on the next line create a thematic break below this paragraph.
The minus signs below must be separated from this paragraph by a blank line. If not, they are parsed as a level 2 heading.
Three or more asterisks also create a thematic break.
Use quote blocks to emulate reply text. This line is part of the same quote.
This line is not formatted and does not belong to the quote block.
This block spans multiple paragraphs.
The second paragraph is grouped with the previous paragraph in the same quote block. Character formatting is also supported inside the quote block.
Quote blocks can also be nested.
When you start a new line with additional > characters,
it simulates a threaded conversation.
Start an indented code block following a paragraph with a blank line and at least four spaces of indentation:
This is a code block.
Blank lines between indented lines do not end the code block.
Here is some HTML:
<div class="footer">
, ©, 2009—2017 JetBrains · All rights reserved
</div>
This line of text is not indented. It ends the code block and starts a new paragraph.
Set multiple lines of code in fenced code blocks.
action: function(ctx) {
workflow.check(!ctx.issue.isChanged('votes'), workflow.i18n('Voting for a resolved issue is not allowed.'));
},
The following code block uses syntax highlighting for Haskell:
-- Point-free style
fib :: Integer -> Integer
fib = (fibs !!)
where fibs = 0 : scanl (+) 1 fibs
-- Explicit
fib :: Integer -> Integer
fib n = fibs !! n
where fibs = 0 : scanl (+) 1 fibs
Things I need to do today:
- Fix usability problem
- Clean up the page
- Make the headings bigger
- Push my changes
- Create code review
- Describe my changes
- Assign reviewers
- Ask for feedback
Kitchen Cleanup Rotation
Month | Assignee | Backup |
---|---|---|
January | Dave | Steve |
February | Gregg | Karen |
March | Diane | Jorge |
Here's the same text with character formatting.
- The text in the first column is flush right.
- The text in the second column is centered.
- The Markdown is stripped down to the minimum syntax that is required to render the table.
Month | Assignee | Backup |
---|---|---|
January | Dave | Steve |
February | Gregg | Karen |
March | Diane | Jorge |
inline link inline link with tooltip reference link
Both of these URLs are parsed as links:
https://www.github.com/mrsandaru https://www.github.com/mrsandaru
Email addresses are also converted into "mailto" links when set in angle brackets:
Here's an image link to the Markdown logo on Wikipedia:
Markdown also supports images as links. Just wrap the entire image reference in brackets then add the target URL in parenthesis after the image reference. People use this syntax to insert a thumbnail image that links to a video on a video sharing platform.
But this is not a vedio:
Here are a few examples of backslash escapes:
*not emphasis* `not an inline code span` 1. not an ordered list * not an unordered list # not a heading
\This is not a backslash escape - the escaped character is not a markup character.