1. What does `git stash` do by default?
`git stash` saves local modifications (tracked files) for later: use `stash pop/apply` to restore.
Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
HCL · Git & Version Control
Practice Git & Version Control questions specifically asked in HCL interviews – ideal for online test preparation, technical rounds and final HR discussions.
Questions
3
Tagged for this company + subject
Company
HCL
View company-wise questions
Subject
Git & Version Control
Explore topic-wise practice
Go through each question and its explanation. Use this page for targeted revision just before your HCL Git & Version Control round.
`git stash` saves local modifications (tracked files) for later: use `stash pop/apply` to restore.
For complete preparation, combine this company + subject page with full company-wise practice and subject-wise practice. You can also explore other companies and topics from the links below.
'.gitignore' tells Git which files/paths not to track (e.g., builds, secrets). Common patterns: 'node_modules/' and '*.log'. This keeps history clean and avoids committing noise or sensitive data.
# .gitignore node_modules/ *.log .DS_Store /dist/
`origin` is the default remote alias created by `git clone`.