🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

Version Control Systems.pdf

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Full Transcript

Version Control Systems 1 Version Control Systems Record changes to a file over time Allow you to keep track of the changes to your code and “go back” in time when you need to Git is a widely used modern version control system Github (www.github.com) is an onlin...

Version Control Systems 1 Version Control Systems Record changes to a file over time Allow you to keep track of the changes to your code and “go back” in time when you need to Git is a widely used modern version control system Github (www.github.com) is an online project-hosting website that supports git A git cheat sheet is available at https://education.github.com/git-cheat-sheet- education.pdf There are LOTS of online resources on how to use git. Some of these are shared on eClass, including videos for this class (See CMPUT 201 Video Tutorials) 2 How will we use Git & Github in 201? You will have multiple private Github repositories: one for each deliverable in the course. All your lab and assignment solutions will be developed using Github. You will receive a GitHub classroom invitation link for each of these four repositories. When you go to the link, GitHub will create the corresponding repository for you. You must use these repositories for labs and assignments. (Note that the first time you click on any of the links we provide you, you will be asked to select your CCID, which will show up as an email address). When marking your assignments, we will simply pull the code on GitHub at the time of deadline and mark it. We will pull from the main branch. When marking lab exercises or during demos, the TA will pull the code from GitHub at the deadline. 3 What Each Repository Will Look Like Each lab repo will be a copy of this and will be called 4 Your Repository’s Address 6 Pull/Merge Process git branch git commit git push 7 git pull/ rebase https://mergebase.com/images/git-V.webp Example of using git Clone a repository (you only need to do this once the first time you use a repo on a given computer Create a new branch on your repository for development 8 Example of using git cont’d Use git status to see all current changes Add the file you want to commit, then push to GitHub 9

Use Quizgecko on...
Browser
Browser