a cademyzaribacom 1 Lecture Content What is Software Configuration Management Version Control Systems VCS Basic Git Commands Merging and Branching Creating a repository Simple Phaser ID: 759401
Download Presentation The PPT/PDF document "Version Control Systems" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Version Control Systems
academy.zariba.com
1
Slide2Lecture Content
What is Software Configuration Management?Version Control Systems (VCS)Basic Git CommandsMerging and BranchingCreating a repositorySimple Phaser DemoSource TreeVCS in WebStorm
2
Slide33
What is SoftwareConfiguration Management (SCM)?
SCM’s task is to keep track and controlling changes in the software.Revision Control, Source Control and Version Control.
Slide4Version Control Systems (VCS)
4
Slide5Workflow
Basically, the workflow goes like this: After that you can push your files from the HEAD to the remote master (or branch).
5
Slide66
Creating a repository
Slide7Basic git commands
git init – create a new git repository.git remote add origin <address> - connect your repository to a remote server.git clone <address> - clone a repository from a remote server.git add <filename> - add specific file/files to the index.git add . – add all modified files to the index.git commit –m “message” – commit files to the HEAD with a specific message.git push origin master – send the changes from the HEAD to the server.git tag <version> <commit> - tagging a specific commit with a version.git log --author=vankata --pretty=oneline --graph --oneline --decorate --all --name-status - check the repository history.git checkout -- <filename> - replace changes in the working tree with the last content in HEAD.git fetch origin – download locally the latest origin master.git reset --hard origin/master – reset the local master to remote origin master.
7
Slide8Merging and Branching
git checkout –b <branchname> - create a new branch.git push origin <branchname> - push changes to branchgit checkout master – switch back to mastergit branch –d <branchname> - delete branchgit pull – update your local repository to the newest commit.git merge <branch> - merge your local repository to a specific branchgit diff <branchname> <branchname> - preview differences in branches
8
Slide9Simple Phaser demo
9
Create a simple demo with
Phaser
Initial commit of the project
Preview of the basic
Git
Commands
Slide10Source Tree
10
Slide11VCS in WebStorm
11
Slide1212
References
http
://
rogerdudler.github.io/git-guide/
https
://en.wikipedia.org/wiki/Software_configuration_management
Slide1313
Zariba Academy
Questions