DevOps Classroomnotes 08/Mar/2023

Git Stash

  • Stash is the fifth area of git to preserve changes done in the working tree (tracked files)
  • The stash is located in local repo
# To stash changes
git stash
# To view the list of stash
git stash list
# to get the changes back to working tree
git stash apply
# to get the changes back to working tree and remove from the stash list
git stash pop

Jenkins Stash and UnStash

  • Refer Here for jenkins pipelin stash and Refer Here for unstash
  • The unstash creates the file in the same path
    Preview

GitHub Pull Request

  • To make contributions to the repositories where we dont have direct permissions
  • We fork the repository
  • We make changes
  • To get our changes published We create pull requests to the original repo
  • The author/owner of repo reviews the changes and merges the pull request if he wants or closes the pull request
  • Refer Here for official docs
  • In the next session we will be using pull request based workflow in such a way that
    • Jenkins will perform ci and write status about the results
    • Owner can now decide whether to merge or close the request

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