25 - Git and Github-Lab
25 - Git and Github-Lab
Make a Conflict
Update content in both directories differently:
On your TortoiseGit clone open the test.txt file and add line: "Update with
Tortoise…"
On your GitBash clone open the test.txt file and add line: "Updating with Bash…"
Upload your changes from TortoiseGit clone.
You can use TortoiseGit's "Git Commit…":
Remove the HEAD, ======, <<<<<<, >>>>>>> symbols and save the file.
You have updated the content of your remote repository, now try to update your
TortoiseGit clone.
Make additional changes to test.txt and commit them.
*Note that if you make changes too simple TortoiseGit may automatically merge them.
Now try to push. It turns out that we have our remote repository updated (the merge
commit) and we do not have these changes on our local repository.
Note that message: "Automatic merge failed; fix conflicts…". We have another conflict
and we have to resolve it like we did earlier but small difference:
IV.Teamwork
Work into teams of (about) 5 students in class
Online students work alone or form own teams.
Each team selects a "team leader".
The team leader creates an organization in GitHub:
New organization from: https://github.com/settings/profile. Then on the tab:
Organizations.
Choose a unique name for the organization, e.g. "UniversityOfGreenwichVietnam"