Skip to content

This repository covers essential Git commands and workflows, from initializing a repo to managing branches and resolving conflicts.

Notifications You must be signed in to change notification settings

Nisanth2004/Git_Learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Git Commands

# Initialize Repository
git init

# Clone Repository
git clone <repository-url>

# Stage Changes
git add <file>         # Stage a specific file
git add .              # Stage all changes

# Commit Changes
git commit -m "commit message"

# Check Status
git status

# View Commit History
git log

# Branch Management
git branch                   # List all branches
git branch <branch-name>     # Create a new branch

# Switch Branch
git checkout <branch-name>

# Merge Branch
git merge <branch-name>

# Pull from Remote
git pull

# Push to Remote
git push

# View Remote Repositories
git remote -v

# Stash Changes
git stash

# Reset
git reset --hard             # Discards all changes in the working directory

About

This repository covers essential Git commands and workflows, from initializing a repo to managing branches and resolving conflicts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages