You can either create a new repository on GitHub and [[clone]] it locally or create a local repo and then upload it to GitHub. ## Starting Locally Follow these directions if you've already created your project (or prefer to start locally). 1. Create a project directory. ```bash mkdir <project-dir> cd <project-dir> ``` 3. Initialize git. ```bash git init ``` 4. Create a `.gitignore` and `README.md` file in the root of your project directory. Populate the [[gitignore]] file. ```bash touch .gitignore touch README.md ``` 6. Commit your initial files. ```bash git add -A git commit -m "Initial commit" ``` 1. Navigate to your [Github.com](https://eanderson-ei.github.io/ei-dev/git/initializing-git/#https://github.com) page and login. Click the green Create New Repository button. Name it with the same name you used for the project directory. Provide a description. DO NOT create a `README`, `LICENSE`, or `.gitignore` file. Copy the url provided to your clipboard. 2. Add a remote to your repository and push changes. ```bash git remote add origin <repo> git branch -M main git push -u origin main --tags ```