# Useful Tutorials

### **Auto Sync Fork:**

<details>

<summary>Auto Sync Fork</summary>

```
name: Auto - Sync Fork

env:
  # Required, URL to upstream (fork base)
  UPSTREAM_URL: "https://github.com/opentibiabr/canary.git"
  # Required, token to authenticate bot, could use ${{ secrets.GITHUB_TOKEN }} 
  # Over here, we use a PAT instead to authenticate workflow file changes.
  WORKFLOW_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
  # Optional, defaults to main
  UPSTREAM_BRANCH: "main"
  # Optional, defaults to UPSTREAM_BRANCH
  DOWNSTREAM_BRANCH: ""
  # Optional fetch arguments
  FETCH_ARGS: ""
  # Optional merge arguments
  MERGE_ARGS: ""
  # Optional push arguments
  PUSH_ARGS: ""
  # Optional toggle to spawn time logs (keeps action active) 
  SPAWN_LOGS: "false" # "true" or "false"

# This runs every day on 1801 UTC
on:
  schedule:
    - cron: '0 */4 * * *'
  # Allows manual workflow run (must in default branch to work)
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: GitHub Sync to Upstream Repository
        uses: dabreadman/sync-upstream-repo@v1.3.0
        with: 
          upstream_repo: ${{ env.UPSTREAM_URL }}
          upstream_branch: ${{ env.UPSTREAM_BRANCH }}
          downstream_branch: ${{ env.DOWNSTREAM_BRANCH }}
          token: ${{ env.WORKFLOW_TOKEN }}
          fetch_args: ${{ env.FETCH_ARGS }}
          merge_args: ${{ env.MERGE_ARGS }}
          push_args: ${{ env.PUSH_ARGS }}
          spawn_logs: ${{ env.SPAWN_LOGS }}

```

**Credits:**

**LeoTK.**

</details>

### **How to use Git:**&#x20;

<https://git-scm.com/book/en/v2/Getting-Started-The-Command-Line>

### How to use Github Desktop:

<https://docs.github.com/en/desktop/installing-and-configuring-github-desktop/overview/getting-started-with-github-desktop>

<https://docs.github.com/en/repositories/creating-and-managing-repositories/duplicating-a-repository>

### GitKraken:

<https://help.gitkraken.com/gitkraken-client/gitkraken-client-home/>

### Learn Git:

<https://www.gitkraken.com/learn/git>

### Discord Markdown:

<https://discord.fandom.com/wiki/Markdown>

<https://highlightjs.org/static/demo/>

### **GDB Tutorial:**&#x20;

<http://www.gdbtutorial.com/>
