Welcome to Git: Stashing changes - Basic (Java).
This question is used to evaluate your skills on stashing the
changes in Git.
For this, you will be evaluated based on the following
operations. The remote repository has been pre-configured into your local git
repository.
- Your
local git repository will be linkedlist_java.
- Push
the master branch of local git repository to the remote repository.
- Create
a new branch with the name new_branch.
- Make
a change to the Java program file (do not remove it), make a commit and
push the branch.
- Make
a few more changes to the Java program file and stash those changes.
Run Below Command:
- Ø cd linkedlist_java
- Ø git push origin master
- Ø git checkout -b new_branch
- Ø vim java.js
- Ø git add java.js
- Ø git status
- Ø git commit -m “Hello”
- Ø git push origin new_branch
- Ø git stash
No comments:
Post a Comment