DEV Community

Farha kousar
Farha kousar

Posted on

14 5 5 5 6

Git cheatsheet

"Don't be overwhelmed by learning Git! 😊 It's simpler than you might think. Here's a condensed list of essential Git commands and concepts to get you started:

  1. Core:

    • git init
    • git clone
    • git add
    • git commit
    • git status
    • git diff
    • git checkout
    • git reset
    • git log
    • git show
    • git tag
    • git push
    • git pull
  2. Branching:

    • git branch
    • git checkout -b
    • git merge
    • git rebase
    • git branch --set-upstream-to
    • git branch --unset-upstream
    • git cherry-pick
  3. Merging:

    • git merge
    • git rebase
  4. Stashing:

    • git stash
    • git stash pop
    • git stash list
    • git stash apply
    • git stash drop
  5. Remotes:

    • git remote
    • git remote add
    • git remote remove
    • git fetch
    • git pull
    • git push
    • git clone --mirror
  6. Configuration:

    • git config
    • git global config
    • git reset config
  7. Plumbing:

    • git cat-file
    • git checkout-index
    • git commit-tree
    • git diff-tree
    • git for-each-ref
    • git hash-object
    • git ls-files
    • git ls-remote
    • git merge-tree
    • git read-tree
    • git rev-parse
    • git show-branch
    • git show-ref
    • git symbolic-ref
    • git tag --list
    • git update-ref
  8. Porcelain:

    • git blame
    • git bisect
    • git checkout
    • git commit
    • git diff
    • git fetch
    • git grep
    • git log
    • git merge
    • git push
    • git rebase
    • git reset
    • git show
    • git tag
  9. Alias:

    • git config --global alias.
  10. Hook:

    • git config --local core.hooksPath

For faster learning, check out these resources:

  1. Git Official Documentation: git-scm.com/doc
  2. GitHub Learning Lab: https://lnkd.in/dfQY6Jtp
  3. Codecademy Course: https://lnkd.in/dwG5_C6q
  4. Pro Git by Scott Chacon [Book]: git-scm.com/book/en/v2
  5. YouTube:
    • FreeCodeCampOrg for beginners: rb.gy/ljxt5s
    • FreeCodeCampOrg for intermediate learners: rb.gy/1x6mc

Git #VersionControl #LearningGit

Feel free to connect with me on LinkedIn: https://www.linkedin.com/in/farhakousar16
And check out my GitHub profile and star my repositories: https://github.com/FarhaKousar1601

If you have anything to add or any questions, don't hesitate to ask! 😊🌱"

Billboard image

Imagine monitoring that's actually built for developers

Join Vercel, CrowdStrike, and thousands of other teams that trust Checkly to streamline monitor creation and configuration with Monitoring as Code.

Start Monitoring

Top comments (3)

Collapse
 
zubi5 profile image
Zubi-5 β€’

Thanks

Collapse
 
misbasaba profile image
Misbasaba β€’

Thanks❀

Collapse
 
kcdrama profile image
Kcdrama β€’

Thank you

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay