DEV Community

Ochei Odiase
Ochei Odiase

Posted on

A TECHNICAL BLOG ON GIT AND GITHUB;INCLUDING HOW TO SET IT UP

  1. Install Git
    Windows:

    Download the installer from git-scm.com

    Run the installer and follow the setup instructions (default options work fine for most users)

Image description

Image description

  1. Configure Git

Set your user identity (used for commits):

git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"

Image description

  1. Create or Clone a Repository To clone:

git clone git@github.com:username/repository.git

To create a new local repo:

mkdir my-project
cd my-project
git init

Image description

  1. Basic Workflow Commands

git status # Check current changes
git add . # Stage all changes
git commit -m "Message" # Commit staged changes
git push # Push to remote repo
git pull # Pull latest changes

Image description

Image description

  1. signup to GITHUB and then sign in:

Image description

Image description

click on the plus button and select " new repository" then create a new "repository"

Image description

Image description

Image description

Top comments (0)