5. Index
Version control what & why ?
Version control tools
diference between Git & GitHub
What’s Git
Git features
Git operations & Commands
7. Version Control System
Version control is management of changes to
documents or large websites and other
collection of information.
Changes usually termed as “versions”.
11. 2- Storing versions
What we should save ?
Just the modifcations between versions ?
All project fles ?
What is versions names ?
Without VCS
With VCS
Snapshot of every version is properly documented
and stored.
Version named accurately.
What is exactly diferent between versions.
18. What’s Git ?
Git is distributed version control tool that supports distributed non
linear workflows by providing data assurance for developing
quality software.
Remote
Repository
local
Repository
local
Repository
local
Repository
local
Repository
local
Repository
local
Repository
Commitchanges
toserverremote
19. What’s Git ?
Git help us to create local repo ,track
changes we made ,push and pull data to
server.
26. Make sure you have Git
software
Make sure you have downloaded and install
Git in Your machine if not install it from
https://git-scm.com/
27. Create project folder locally
Create any new folder locally in your machine
to start work from it.
Initiate fle with Git by running this command
“git init” in Git bash
28. Add your Git username and
set your email
Add your credential to Git by using
”git confg --global user.name "username" ”
”git confg --global user.email "email@email.com" ”
To verify that your data is added use
”git confg --global user.name”
”git confg --global user.email”
29. Syncing repository
We have to add link of repository to our
folder to be able to pull or push fles from
local to remote server ,we can do this by
running “git remote add origin <link>”
We can pull fles with “git pull origin master ”
We can push fles with “git push origin master”
https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html
30. Start guide to using Git
https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html
33. Creating & Switch branches
To create branch use
“git branch branch_name”
To view all branches use
“git branch”
To switch branch use
”git checkout branch_name”
34. Parallel development
– merging
it’s the way to combine the work of diferent
branches together
Allow you to develop new feature & combine
it back in
35. Merging branches
To merge branch make sure your current
branch is the branch you want to merge into
and use
”git merge branch_name”