Skip to main content
In this lesson, you’ll set up a new GitHub repository named gcp-devops-project. Follow these steps to get started.

Prerequisites


Step 1: Access GitHub

  1. Open your browser and navigate to https://github.com
  2. Click Sign in to log in, or Sign up to register.
The image shows the GitHub homepage with a space-themed background, featuring the text "Let's build from here" and options to sign up or start a free enterprise trial.
If you have Two-Factor Authentication enabled, create a personal access token before signing in.

Step 2: Sign In or Sign Up

  1. Enter your username (or email) and password.
  2. Click Sign in.
  3. If you don’t have an account yet, select Sign up and follow the registration flow.
The image shows the GitHub login page in a web browser, with fields for entering a username or email and password. There are options to sign in, create an account, or recover a forgotten password.

Step 3: Create a New Repository

  1. From your dashboard, click Create a new repository.
  2. Configure the repository settings:
  1. For this tutorial, choose Public.
  2. Name the repository gcp-devops-project.
  3. Click Create repository.
The image shows a GitHub dashboard with options to start a new repository and create a profile README. It includes sections for recent activity and tools for developers.

Step 4: Initialize Locally & Push

Run these commands in your terminal to initialize, commit, and push to GitHub:
Always verify your remote URL with git remote -v to avoid pushing to the wrong repository.

Congratulations! Your gcp-devops-project repository is now live on GitHub. In the next lesson, we’ll explore branching strategies and collaboration workflows.

Watch Video