An open API service indexing awesome lists of open source software.

https://github.com/nisanth2004/git_learn

This repository covers essential Git commands and workflows, from initializing a repo to managing branches and resolving conflicts.
https://github.com/nisanth2004/git_learn

company control git github it java spring springboot system version

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Basic Git Commands

```bash
# Initialize Repository
git init

# Clone Repository
git clone

# Stage Changes
git add # 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 # Create a new branch

# Switch Branch
git checkout

# Merge Branch
git merge

# 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