Get expert help & submit on time
Assignment Task: How to Create a Local Git Repository
Install Git on AWS Ubuntu.
Create a directory with the name “My Project”.
Initialize the “My Project” directory as an empty Git repository.
Place your Eclipse project into this Git Repository.
Create a .gitignore file and configure it to exclude these files (*.class, *.settings, *.project).
Add the source code into the Staging Area.
Commit the source code into the Local Git repository.
Create a Remote repository on GitHub.
Push the source code from the Local repository to the Remote Repository.
Additional Tasks:
Your Task:
Create a file Demo.java which prints “Hello World”.
Create 2 branches out of this master: Feature1 and Feature2.
Make changes in the Feature1 branch in the same line of code.
Commit the code in the Feature1 branch.
Now check out the Feature2 branch and make a change in the same line as you did in Feature1.
Commit the code in the Feature2 branch.
Merge the Feature2 branch into the Feature1 branch. It should give a merge conflict.
Resolve the merge conflict with the help of Kdiff3 or Meld tool.
Verify the merge using the git log command.