---
# System prepended metadata

title: Superfast Git

---

# Superfast Git

## Step 1: Fork

![截圖 2025-09-06 晚上10.44.59](https://hackmd.io/_uploads/Sktbt6tqel.png)

Now you have your own repo!

![截圖 2025-09-06 晚上10.45.54](https://hackmd.io/_uploads/HkM4FpFcgg.png)

## Step 2: Clone and Setup

### Clone "your" repo to your computer

```
git clone [your_repo]
cd [directory_of_your_repo]
```

### Set upstream of "your" repo to the global repo

```
git remote add upstream [global_repo]

# i.e., in this project:
git remote add upstream git@github.com:NTUEEInfoDep/2025NTUEEWeekGame.git
```

### Some additional settings

```
# won't push to the upstream main
git remote set-url --push upstream no_push

# we hate pull and merge
git config --add merge.ff only
git config --add pull.ff only
git config pull.rebase true

# check your setup
git remote -v

# which should be like:
origin	[your_repo] (fetch)
origin	[your_repo] (push)
upstream	[global_repo] (fetch)
upstream	no_push (push)
```

## Step 3: Develop

### Check updates before you do anything

```
# Update the local repo
git checkout main
git fetch upstream
git rebase upstream/main
```

### Develop the game

```
(Insert constructive codes here)
```

## Step 4: Push Update to Your Repo

```
git add [files]/[-A]
git commit -m [message]
git push
```

## Step 5: Create a Pull Request

### On your own repo

![截圖 2025-09-06 晚上11.05.37](https://hackmd.io/_uploads/SkOR6aY9xl.png)



