#Adding an existing project to GitHub using the command line
Simple steps to add existing project to Github.
In Terminal, change the current working directory to your local project.
##2. Initialize the local directory as a Git repository.
git init
| // Zed settings | |
| // | |
| // For information on how to configure Zed, see the Zed | |
| // documentation: https://zed.dev/docs/configuring-zed | |
| // | |
| // To see all of Zed's default settings without changing your | |
| // custom settings, run the `open default settings` command | |
| // from the command palette or from `Zed` application menu. | |
| { | |
| "icon_theme": "Colored Zed Icons Theme Dark", |
| <script> | |
| fetch('https://www.trustandsafetyjobs.com/jobs.xml') | |
| .then(response => response.text()) | |
| .then(xml => { | |
| var parser = new DOMParser(); | |
| var xmlDoc = parser.parseFromString(xml, 'text/xml'); | |
| var jobs = xmlDoc.getElementsByTagName('job'); | |
| document.getElementById('total-jobs').innerHTML = | |
| '🔥 There are currently <span style="color: #58b398;">' + jobs.length + ' live</span> jobs.'; | |
| }); |
| // Zed settings | |
| // | |
| // For information on how to configure Zed, see the Zed | |
| // documentation: https://zed.dev/docs/configuring-zed | |
| // | |
| // To see all of Zed's default settings without changing your | |
| // custom settings, run the `open default settings` command | |
| // from the command palette or from `Zed` application menu. | |
| { | |
| "icon_theme": "Colored Zed Icons Theme Dark", |
| // Zed settings | |
| // | |
| // For information on how to configure Zed, see the Zed | |
| // documentation: https://zed.dev/docs/configuring-zed | |
| // | |
| // To see all of Zed's default settings without changing your | |
| // custom settings, run the `open default settings` command | |
| // from the command palette or from `Zed` application menu. | |
| { | |
| "icon_theme": "Colored Zed Icons Theme Dark", |
| // Replace with your API key | |
| const API_KEY = "wip_sk_{YOUR_API_KEY_HERE}"; | |
| const API_URL = `https://api.wip.co/v1/users/me.json?api_key=${API_KEY}`; | |
| // Function to fetch data from the API | |
| async function fetchStreakData() { | |
| let request = new Request(API_URL); | |
| let response = await request.loadJSON(); | |
| return response; | |
| } |
| import { NextResponse } from "next/server"; | |
| import { ServerClient } from "postmark"; | |
| const { POSTMARK_API, TURNSTILE_SECRET } = process.env; | |
| const client = new ServerClient(POSTMARK_API); | |
| export async function POST(req) { | |
| const body = await req.json(); | |
| const { form, token } = body; |
| <?php | |
| $pocket_monsters = [ | |
| 0 => [ | |
| 'id' => 1, | |
| 'name' => [ | |
| 'english' => 'Bulbasaur', | |
| 'japanese' => 'フシギダネ', | |
| 'chinese' => '妙蛙种子', | |
| 'french' => 'Bulbizarre', |