DevOps Classroom notes 22/Nov/2024

Git (contd)

ignoring files and folders

  • git ignore official docs
  • Delete untracked files from working tree git clean -fd <path>
  • Git restore command
    • –staged: this will move the changes from staging area to working tree
    • restores the modified file back to its state in working tree
      Preview

Git HEAD movements

  • We have two expressions

    • HEAD~n: take n steps back
    • HEAD^: go to the parent
  • Explain difference between git reset hard, soft and mixed ?

Cherry pick

rebase

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube