or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Introduction to Git –- Fall 2020
Lecture B: Using Kebnekaise for the Git course
Slides: https://hackmd.io/@hpc2n-git-2020/LB-Kebnekaise#/
Connecting to Kebnekaise
For this course we recommend using ThinLinc, but if you have your own installation of another SSH client that you prefer, you are welcome to use that.
More information here: https://www.hpc2n.umu.se/documentation/guides/thinlinc
Setting up Git
Git is already installed on Kebnekaise, but you need to set your name and email globals unless you have already done this at some earlier time.
$ git config --global user.name "Your Name"
$ git config --global user.email "yourname@example.com"
You may also want to set your editor. We recommend vim, but other options are nano and emacs.
$ git config --global core.editor vim
Testing your configuration
Create an example folder and cd into that, then create a file test.txt:
Now initialize a repository and add the new file:
Now commit the change. The editor which you configured earlier should open. Add an example commit message:
Testing your configuration - continued
Now let us look at the log:
When you do
git log
, you should see something like:but with name, email and commit message different.
If that is the case, your Git should be configured correctly.
Download the course materials
For the individual hands-on part of the course, we have created some course materials which you will download from the course website or the "important information" page.
tar zxvf <tarball>