Code Repository Tool (Version Management) : Git Process
Code Repository Tool (Version Management) : Git Process
Git Process:
Git Repository Types:
a. Public : Free for every one
b. Private : Paid version.
Remote Repository(Steps):
a. goto https://github.com/
b. SignUp(Register) with details
c. Goto Email -and verfiy Link
d. login with un and pwd
e. Create Repository Type Public (Companies uses- Private Type)
1
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
2
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
we can also choose any two files to compare with each other ex:select
4
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
5
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
6
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
Ex : (Repository Link)
https://github.com/javabyraghu/venapps.git
Got Eclipse:
Create A new Java Project (project name and repository name
Should be same )
7
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
8
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
9
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
looks as below:
10
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
looks as below:
11
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
click on finish.
By this we created local and remote repositories.
Now link local and remote, using firsh commit and push.
Come to git repositoes
In staging are:
12
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
After drop
13
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
After Push option one screen looks below, there enter URI
(Repository link)
Ex: https://github.com/javabyraghu/venapps.git
14
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
Click on next>next>finish
15
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
Shows as below:
On success:
16
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
Click on src/venapp>Employee.java
17
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
Right click on project: pull and then rebase for other update:
18
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
To see history:
Right click on File (ex: Employee.java)> Team>Showin History
View history:
19
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
Employee.java = Version#2
1. class Employee
2. {
3.+ int empId;
4.+ String empName; -}
5.+ }
V#2 = V#1 [+3,-1].
Git manages version management automatically Here programmer do
not need to remember any version number.
** On git pull & rebase, local repository and remote repository versions
will become equal.
1. Repositories
2. right click on project
3. "pull" option
4. again right click
5. "rebase" option.
20
Raghu Sir (GIT NOTES), Sathya Technologies, Ameerpet.
22