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.
- Host: GitHub
- URL: https://github.com/nisanth2004/git_learn
- Owner: Nisanth2004
- Created: 2024-11-04T12:59:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-17T12:52:28.000Z (over 1 year ago)
- Last Synced: 2025-06-30T07:48:27.726Z (12 months ago)
- Topics: company, control, git, github, it, java, spring, springboot, system, version
- Language: Java
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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