Coder Social home page Coder Social logo

med2-github-exercise's Introduction

MED2 Github Exercises

Before the exercise, please make sure that you have installed Unity version 2020.3.28f1, Github Desktop, and a source-code editor (such as Visual Studio Code). Also make sure that you have created a Github account on www.Github.com.

1. Fork and clone repository

  • Go together in groups of two.
  • One person from the group should:
    • Fork this Github repository by pressing the button in the top right corner:
    • Add the other group member by going to Settings > Collaborators > Add people.
  • The other group member should then:
    • Accept the invitation to join the newly created repository (excluding the person who forked the project).
  • Both group members should then:
    • Clone the repository by going to Github Desktop and choosing "Clone repository" โ€“ then choose the repository that was just created.

You might want take a look at this Github Desktop Guide.

2. Pull and push

  • Open the Unity project "Github Unity Exercise" located in the cloned repository.
  • Locate and open the script "ExerciseCode.cs".
  • on one computer, edit the code to add the function call "PassByValue(myVariable);" on line 14, as indicated in the code. Save and press play in Unity to observe the result in the console.
  • Go back to Github Desktop. Here you can now see the changes you have made. Write a summary of the change and press "Commit to main". Upload your local changes by pressing the "Push" button at the top.
  • Now, on the other computer, go to Github Desktop and press "Fetch" at the top. Then press "Pull". This fetches and downloads the content on the remote repository and updates your local repository to match the content. Go to the Unity project and open the "ExerciseCode.cs" script to see that you now have the updated code.

3. Merge conflicts

med2-github-exercise's People

Contributors

malteerasmussen avatar kristinnbragi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.