Skip to content

VarunArora24/LocalRepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

#All GIT commands for reference

=========================

1. Git Setup & Configuration

=========================


git config --global user.name "Your Name"
git config --global user.email "you@example.com"
git config --list
git config user.name
git init
git clone

=========================

2. Working with Files

=========================


git status
git add
git add .
git restore --staged
git restore

=========================

3. Committing Changes

=========================


git commit -m "message"

=========================

4. Branching & Merging

=========================


git branch
git branch
git merge
git branch -M

=========================

5. Remote Repositories

=========================


git remote add origin
git remote -v
git push origin
git push --all origin
git pull origin
git fetch origin
git remote remove

=========================

6. Clean Up

=========================


git clean -f
git clean -fd
git clean -xfd

=========================

7. Info & Help

=========================


git log
git blame
git show
git branch --show-current
git help

=========================

8. Common Combos

=========================

Initialize → Add → Commit


git init && git add . && git commit -m "first commit"

Clone → Create branch → Push


git clone && git checkout -b new-feature && git push -u origin new-feature varun muje welcome kar ki tune muje saare codes dediye free mei

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors