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

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 comment

Turn on JavaScript to leave a comment.

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%