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
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
