Lab-Practice
- Environment: Clone the Repository over here
- Practice-Items:
- You are asked to work on feature-1, so clone the repository and create a branch called as feature-1
- Make changes in the src\app.py line 1 to some text of your choice and commit the changes in the new branch
- Add one more commit my making changes in the test\app.py and commit the changes to the new branch
- Create a testing-feature-1 branch from feature-1 branch and make a commit by changing docs\app.md
- A new change is commited to master and you need to update that change to your branch also
- Do Rebase
- Add few more commits to test-feature-1 branch (two commits) and try to bring those changes to feature-1 branch
- Do a Simple Merge which
- On the feature-1 Add some more change with two commits with messages commitx and commity.
- Change the message from commitx to commit-x by interactive rebase
git rebase -i HEAD~2
9. Change the message from commity to commit-y
git commit --ammend
- Lets remove commit x by interactive rebase
git rebase -i HEAD~2
11. note: combining two commits into one is squash 12. Note: Never change history of public branches 13. Create a fork (a local copy of someone’s repository) into your account