Its presentation about Version Control from software engineering subject, also in this presentation I have discussed Git and Github its usage and configuration of Github in Dreamweaver, Android Studio, and visual studio and at the last part there is some commands of git and summary,
2. SOFTWARE ENGINEERING
• Version Control
• Git
• GitHub
• Git vs GitHub
• GitHub Options
• GitHub on difference IDE s
• Git Commands
• Summary
Key Study
2
3. Version Control
• Version control is the ability to manage the change and configuration of
an application.
• Versioning is a priceless process, especially when you have multiple
developers working on a single application
• In software engineering also known as Source Control, Revision Control
and Source Code Management.
• Each revision is associated with a timestamp and the person making
the change.
3
4. Version Control
• Version control systems allow you to compare files.
• identify differences, and merge the changes if needed prior to
committing any code.
• Versioning is also a great way to keep track of application builds by
being able to identify which version is currently in development
• when new developers join the team, they can easily download the
current version
4
5. Git
• Version control system (VCS) for tracking changes in computer files.
• Initially created in 2005 by Linus who was the creator of Linux
• Free open source distributed version control
• Coordinates work between multiple developers.
• Who made what changes and when.
• Revert back anytime.
• Local and remote repository.
• To download and install visit https://git-scm.com/
5
6. GitHub
• Founded on 2008 by Microsoft corporation.
• GitHub provides hosting for software development and version control
using Git
• It offers the distributed version control and source code management
SCM
• It provides access control and several collaboration features such
as bug tracking, feature requests, task management, and wikis for every
project.
• GitHub is a cloud-based hosting service that lets you
manage Git repositories. If you have open-source projects that use Git,6
7. Git vs GitHub
Git is a high quality version control system
It is installed and maintenance on the local machine
(rather than in cloud)
Git
GitHub is cloud-base hosting services
Its designed as a Git repository hosting services
You can share codes with others given them the poser to make
revision or edits
GitHub
7
8. GitHub Options and
Keywords
• Repository - it’s the directory or URL of the initiated git folder
• Remote Repository - in Git, a remote is the server where your code is
stored
• Branch - essentially is a unique set of code changes with a unique
name
• Commit - records changes to one or more files in the branch
• Push - commits made on your local branch to a remote repository
• Pull - git pull updates your current local working branch
8
9. GitHub Dreamweaver
Configuration
Create new site on Dreamweaver
1. Open Dreamweaver.
2. In the Site menu, choose New Site.
3. Enter a Site Name. For example, enter <optional>.
4. Create a new local site folder
• For local site folder, select an empty folder. If you type the name of a folder
that doesn't exist, it will be created. When the site is created, the remote
Git repository will be cloned to this directory.
Configuring Git credentials in Dreamweaver
5. Select Associate a Git repository with this site.
6. Select Clone existing Git repository using URL.
7. Enter the https:// URL of your repository.
8. For Git Username, enter your GitHub username.
9. For Password, if you are using 2FA (two-factor authentication),
enter your access token If you are not using 2FA, enter your normal
Git password.
10. Click Test to verify that the authentication is working.
11. Check the box labeled Save Credentials.
• Note: If you don't save your credentials now, you might not be able to do it
later.
12. Click Save.9
10. GitHub Android Studio
Configuration
Open the project in android studio
1. Go to File -> Settings -> Version Control -> Git.
2. Click on test button to test "path to Git executables".
• If successful message is shown everything is ok, else navigate to
git.exe from where you installed git and test again.
3. Go to File -> Settings -> Version Control -> GitHub. Enter your
email and password used to create GitHub account and click
on OK button.
4. Then go to VCS -> Import into Version Control -> Share Project
on GitHub. Enter Repository name, Description and
click Share button.
5. In the next window check all files in order to add files for initial
commit and click OK.
6. Now the project will be uploaded to the GitHub repository and when
uploading is finished we will get a message in android studio
showing "Successfully shared project on GitHub". Click on the link
provided in that message to go to GitHub repository.
7. Go to VCS -> Git -> Commit file . Then type a commit message and
click on commit button.
10
11. GitHub Visual Studio
Configuration
Open Visual Studio 2019
1. On Start Window Click Continue without Code
2. Click File –> New –> Repository
3. The Team Explorer opens on the right
4. Pick the folder that you want to create the repository in
Create new project in the created repository
5. File New Project
6. Select project type then next
7. Enter project name and select created repository in location.
Now Commit new project to GitHub
5. Click on Team Explorer Dropdown Arrow Changes
6. Enter a message click plus sign Stage All Commit All
Note: Every changes user made on project files will appear in changes section
11
13. Summary
13
• Version Control is a source code
management system allow many
developers to work on same project
• Git is a version control management
system which works locally
• GitHub is a cloud base code management
system using Git
• Differences between Git and GitHub
• Some GitHub options and keywords
• Configuration of GitHub with difference
IDE’s on your computer