Presentation on Repository Control System
-
Upload
md-mujahid-islam -
Category
Software
-
view
168 -
download
0
Transcript of Presentation on Repository Control System
![Page 1: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/1.jpg)
Repository Control System using Git Prepared By
Md. Mujahid Islam
1
![Page 2: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/2.jpg)
What is version control ?Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later.
2
![Page 3: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/3.jpg)
Local Version Control SystemsMany people’s version-control method of choice is to copy files into another directory (perhaps a time-stamped directory, if they’re clever).
This approach is very common because it is so simple, but it is also incredibly error prone.
3
![Page 4: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/4.jpg)
Local Version Control Systems
4
![Page 5: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/5.jpg)
Centralized Version Control Systems❖ These systems, such as CVS, Subversion, and Perforce, have a single server that contains all the versioned files,
and a number of clients that check out files from that central place.
❖ This setup offers many advantages, especially over local VCSs. For example, everyone knows to a certain degreewhat everyone else on the project is doing.
❖ Local VCS systems suffer from this same problem – whenever you have the entire history of the project in asingle place, you risk losing everything.
5
![Page 6: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/6.jpg)
Centralized Version Control Systems
6
![Page 7: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/7.jpg)
Distributed Version Control Systems❖ This is where Distributed Version Control Systems (DVCSs) step in. In a DVCS (such as Git, Mercurial, Bazaar or
Darcs), clients don’t just check out the latest snapshot of the files: they fully mirror the repository. Thus if anyserver dies, and these systems were collaborating via it, any of the client repositories can be copied back up tothe server to restore it.
❖ if any server dies, and these systems were collaborating via it, any of the client repositories can be copied backup to the server to restore it. Every clone is really a full backup of all the data.
7
![Page 8: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/8.jpg)
Distributed Version Control Systems
8
![Page 9: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/9.jpg)
Repository❖ Generically refers to a central place where data is stored and maintained.
❖A repository can be a place where multiple databases or files are located for distribution over a network, or arepository can be a location that is directly accessible to the user without having to travel across a network.
❖Example : Git, Mercurial, Bazaar or Darcs
9
![Page 10: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/10.jpg)
About Git❖Git is a version control system that is widely used for software development and other version control tasks.
❖ It is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows.
10
![Page 11: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/11.jpg)
A Short History of Git❖ In 2002, the Linux kernel project began using a proprietary DVCS called BitKeeper.
❖ In 2005, the relationship between the community that developed the Linux kernel and the commercial companythat developed BitKeeper broke down, and the tool’s free-of-charge status was revoked.
❖Since its birth in 2005, Git has evolved and matured to be easy to use and yet retain these initial qualities.
11
![Page 12: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/12.jpg)
Working Mechanism in GitThe three main sections of a Git project: the Git directory, the working directory, and the staging area.
12
![Page 13: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/13.jpg)
How to use Git❖Almost Every IDE support git plugin . Installing this plugin we perform git operation through UI console their
Like Android Studio, Eclipse, Netbeans etc.
❖Using Command we can perform following operation . In this slide we perform git operation using Git console .
13
![Page 14: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/14.jpg)
Git Topics ❖Git Basic Command
❖Git Branching & Branching Command
❖Git Reset & Reset Command
❖Git Stash Command
❖Git Server
❖Git Communication Command with Remote Server
❖Git Alias Command14
![Page 15: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/15.jpg)
Git Basic CommandCommand Description
git init Initialize git
git status Show git status
git config --global user.name “mbiplobe” Set user name globally
git config user.name “mbiplobe” Set user name only for current project
git config user.email “[email protected]” Set email address only for current project
git config --global user.email “[email protected]” Set email address globally
15
![Page 16: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/16.jpg)
Git Basic CommandCommand Description
git config user.name Show your use name
git config user.email Show your email address
git config add *.pdf Add pdf file in stage directory
git config add -A (A=All)Add all file in stage directory
git commit -m “message” (M=Message)Add message & file add into committed Directory
git commit -am “message” (a=All,m=Message)Add message & all file add into committed Directory 16
![Page 17: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/17.jpg)
Git Basic CommandCommand Description
git config user.name Show your use name
git config user.email Show your email address
git config add *.pdf Add pdf file in stage directory
git config add -A (A=All)Add all file in stage directory
git commit -m “message” (M=Message)Add message & file add into committed Directory
git commit -am “message” (a=All,m=Message)Add message & all file add into committed Directory 17
![Page 18: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/18.jpg)
Giti Basic CommandCommand Description
git checkout 43e33d3 Move to 43e33d3 version
git show 43e33d3 Show every history 43e33d3
git checkout 43e33d3 text.txt Move Current version to text.txt of this 43e33d3version
git commit log Show all log history
git checkout master -f Move text.txt of 43e33d3 versionTo master
18
![Page 19: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/19.jpg)
Git Branching & Command
19
![Page 20: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/20.jpg)
Git Branching & Command
Command Description
git branch Show all created branch
git branch mbiplobe Create a branch which name is mbiplobe
Git checkout mbiplobe Checkout current branch to master branch
20
![Page 21: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/21.jpg)
Git Reset & Reset Command❖Git Reset option help us remove wrong commit or Edit or modify wrong commit .
❖ There are two type of Reset available in git which are given below :
1. Git Soft Reset : After performing this operation previous data or file will not remove from git , justremote wrong commit only .
2. Git Hard Reset :After performing this operation all file or data & commit will be removed .
21
![Page 22: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/22.jpg)
Git Reset & Reset CommandCommand Description
git reset --soft 1a2f1c9 Reset commit only & data will not be removed or deleted
git diff HEAD Show different Accidental Commit
git reset --hard 1a2f1c9 Reset commit & data will be removed or deleted
git reset reflog Show all work what we done
git reset HEAD @{8} Back reset version 8
git reset -hard
22
![Page 23: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/23.jpg)
Git Stash Command
Command Description
git stash Create Stash List
git stash list Show all list item
git stash clear Clear all stash list
23
![Page 24: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/24.jpg)
Git Server❖Git Server is a place where we host our local git repository . There are two type of git Server available which are
given below :
1. Local Git Server : Bonobo git Server , GitLab git server .
2. Global Git Server : github , Bitbucket etc
❖ In this presentation we discuss about Bonobo Git Server (Local git Server) which are discussion below :
24
![Page 25: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/25.jpg)
Bonobo Git Server❖Bonobo Git Server for Windows is a web application you can install on your IIS. It provides an easy management
tool and access to your git repositories that are self hosted on your server.
❖Bonobo Git Server is an open-source project as it is licensed with a MIT License.
❖Bonobo Git Server is a free git server for Windows and it should stay free.
25
![Page 26: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/26.jpg)
Working Procedure on Bonobo Git Server
26
![Page 27: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/27.jpg)
Working Procedure on Bonobo Git Server
27
![Page 28: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/28.jpg)
Working Procedure on Bonobo Git Server
28
![Page 29: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/29.jpg)
Working Procedure on Bonobo Git Server
29
![Page 30: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/30.jpg)
Git communication Command with Remote Server Command Description
git remote add origin “Server_link” Add Remote Server with Git Repository
git remote Show all of Origin
git pull origin master Pull down into Git Repository from Server
git push origin master Push repository history into Repository from Server
30
![Page 31: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/31.jpg)
Git Alias Command
Command Description
alias gc=”git reset -m” Create an Alias which is gc
31
![Page 32: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/32.jpg)
Reference❖https://git-scm.com/
❖https://bonobogitserver.com/
❖https://youtu.be/j1oFazXrzN4
❖https://www.youtube.com/watch?v=M2a7OQX8te4
❖https://progit2.s3.amazonaws.com/en/2016-03-22-f3531/progit-en.1084.pdf
32
![Page 33: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/33.jpg)
Question & Answer
33
![Page 34: Presentation on Repository Control System](https://reader034.fdocuments.in/reader034/viewer/2022051720/58778c291a28ab0f778b4643/html5/thumbnails/34.jpg)
34