Skip to content

codeyaarmadhav/git-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 

Repository files navigation

Git Commands


๐Ÿ”น Cherry Pick

  • git cherry-pick "Commit ID" โ†’ Copies a specific commit from another branch to the current branch

๐Ÿ”น Conflicts

  • Conflicts occur when two branches change the same part of a file and Git cannot automatically merge them.
  • Git marks the conflicting areas in the file, and you must manually resolve them.
  • After fixing, mark as resolved and commit:
    git add "File"
    git commit
    
    # Git Commands  
    

๐Ÿ”น Hotfixes

  • A hotfix is an urgent fix applied directly to production to resolve a critical bug.
  • Workflow:
    git checkout main
    git checkout -b hotfix-branch
    # make the fix
    git commit -m "Fix: urgent issue"
    git checkout main
    git merge hotfix-branch
    git push origin main
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published