0% found this document useful (0 votes)
3 views

github cmds

This document outlines the steps to initialize and push a Git repository to GitHub. It includes commands for navigating to the project directory, initializing the repository, adding files, committing changes, configuring user credentials, adding a remote repository, and pushing changes. Each step is accompanied by the corresponding command to be executed in the terminal.

Uploaded by

premsridev11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

github cmds

This document outlines the steps to initialize and push a Git repository to GitHub. It includes commands for navigating to the project directory, initializing the repository, adding files, committing changes, configuring user credentials, adding a remote repository, and pushing changes. Each step is accompanied by the corresponding command to be executed in the terminal.

Uploaded by

premsridev11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

# Steps to Initialize and Push a Git Repository to GitHub

## 1. Navigate to Your Project Directory


```bash
cd "E:/program files/agile labs/Axpert Web/AxpertWeb/aspx"
```

## 2. Initialize Git Repository


```bash
git init
```

## 3. Configure Safe Directory (If Needed)


```bash
git config --global --add safe.directory "E:/program files/agile labs/Axpert
Web/AxpertWeb/aspx"
```

## 4. Add Files to Staging Area


```bash
git add .
```

## 5. Commit the Changes


```bash
git commit -m "Initial commit"
```

## 6. Set Up Git User Credentials (If Prompted)


```bash
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
```

## 7. Add Remote Repository


```bash
git remote add origin https://github.com/premsridev/axpertweb
```

## 8. Push Changes to GitHub


```bash
git push -u origin master
```

You might also like