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 2024
Lecture D: Using Tetralith for the Git course
Slides: https://hackmd.io/@git-fall-2024/tetralith#/
Connecting to Tetralith
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. We will be using the command line only, so an SSH client like PuTTY would also work.
tetralith.nsc.liu.se
and then enter your own username.If you prefer a different SSH client (terminal, etc.), you connect with
ssh -Y <user>@tetralith.nsc.liu.se
Connecting to Tetralith - continued
NOTE 2FA is needed.
Setting up Git
Git is already installed on Tetralith, 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 "name@example.com"
You may also want to set your editor. We recommend nano, but other options are vim and emacs (or notepad on Windows).
$ git config --global core.editor nano
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 either the course website, the course GitHub, or the "important information" page.
git clone https://github.com/hpc2n/course-intro-git.git
course-intro-git
wget https://github.com/hpc2n/course-intro-git/archive/refs/heads/main.zip
)unzip main.zip
.course-intro-git-main
.GitHub and SSH keys