Git Task
Git Task
Creating and Merging Branches Locally: To start, you’ll need to create two new
branches named feature1 and feature2. In each branch, you’ll add some lines of
code and create new files as needed. Once you’ve made your changes, you’ll switch
back to the main branch. From there, you’ll merge the changes from both feature1
and feature2 into the main branch. Finally, you’ll push the merged code to your
remote repository to ensure all your changes are saved and accessible.
3. Creating and Merging a Pull Request: First, create an index.html file in the main
branch and push it to GitHub. Then, create a new branch from Git Bash, add a new
line to index.html, and commit the changes. Switch back to the main branch, add
another new line to index.html, and commit those changes as well. Push both the
main branch and the new branch to GitHub. After that, create a pull request on
GitHub to merge the new branch into the main branch. Review the changes and
complete the merge to integrate the updates.
4. Collaboration Task