Submit Search
Upload
Git
•
Download as ODP, PDF
•
0 likes
•
1,969 views
Fanani M. Ihsan
Follow
Git Version Control
Read less
Read more
Technology
Report
Share
Report
Share
1 of 40
Download now
Recommended
Belajar Dasar-Dasar GIT
Belajar Dasar-Dasar GIT
Aristyo Hadikusuma
Github
Github
MeetPatel710
Git and GitHub
Git and GitHub
Md. Ahsan Habib Nayan
Git and Github slides.pdf
Git and Github slides.pdf
Tilton2
Introduction to github slideshare
Introduction to github slideshare
Rakesh Sukumar
Starting with Git & GitHub
Starting with Git & GitHub
Nicolás Tourné
Git basics
Git basics
GHARSALLAH Mohamed
Git - Basic Crash Course
Git - Basic Crash Course
Nilay Binjola
Recommended
Belajar Dasar-Dasar GIT
Belajar Dasar-Dasar GIT
Aristyo Hadikusuma
Github
Github
MeetPatel710
Git and GitHub
Git and GitHub
Md. Ahsan Habib Nayan
Git and Github slides.pdf
Git and Github slides.pdf
Tilton2
Introduction to github slideshare
Introduction to github slideshare
Rakesh Sukumar
Starting with Git & GitHub
Starting with Git & GitHub
Nicolás Tourné
Git basics
Git basics
GHARSALLAH Mohamed
Git - Basic Crash Course
Git - Basic Crash Course
Nilay Binjola
Git 101 for Beginners
Git 101 for Beginners
Anurag Upadhaya
Advanced Git Tutorial
Advanced Git Tutorial
Sage Sharp
Git basic
Git basic
Emran Ul Hadi
Intro to git and git hub
Intro to git and git hub
Venkat Malladi
Git with bitbucket
Git with bitbucket
Sumin Byeon
Git for beginners
Git for beginners
Arulmurugan Rajaraman
Git and Github Session
Git and Github Session
GoogleDevelopersStud1
Git and git flow
Git and git flow
Fran García
Introduction git
Introduction git
Dian Sigit Prastowo
Git One Day Training Notes
Git One Day Training Notes
glen_a_smith
Git and github
Git and github
Sayantika Banik
Learning git
Learning git
Sid Anand
Introduction to Git and Github
Introduction to Git and Github
Houari ZEGAI
Git Pull Requests
Git Pull Requests
Callon Campbell
Git Mastery
Git Mastery
ShehryarSH1
Pengenalan Git
Pengenalan Git
Farid Ibrahim
GitHub Presentation
GitHub Presentation
BrianSchilder
Git commands
Git commands
Viyaan Jhiingade
Git flow
Git flow
Valerio Como
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
Omar Fathy
Fabric (python)
Fabric (python)
Fanani M. Ihsan
Fanani xen v1
Fanani xen v1
Fanani M. Ihsan
More Related Content
What's hot
Git 101 for Beginners
Git 101 for Beginners
Anurag Upadhaya
Advanced Git Tutorial
Advanced Git Tutorial
Sage Sharp
Git basic
Git basic
Emran Ul Hadi
Intro to git and git hub
Intro to git and git hub
Venkat Malladi
Git with bitbucket
Git with bitbucket
Sumin Byeon
Git for beginners
Git for beginners
Arulmurugan Rajaraman
Git and Github Session
Git and Github Session
GoogleDevelopersStud1
Git and git flow
Git and git flow
Fran García
Introduction git
Introduction git
Dian Sigit Prastowo
Git One Day Training Notes
Git One Day Training Notes
glen_a_smith
Git and github
Git and github
Sayantika Banik
Learning git
Learning git
Sid Anand
Introduction to Git and Github
Introduction to Git and Github
Houari ZEGAI
Git Pull Requests
Git Pull Requests
Callon Campbell
Git Mastery
Git Mastery
ShehryarSH1
Pengenalan Git
Pengenalan Git
Farid Ibrahim
GitHub Presentation
GitHub Presentation
BrianSchilder
Git commands
Git commands
Viyaan Jhiingade
Git flow
Git flow
Valerio Como
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
Omar Fathy
What's hot
(20)
Git 101 for Beginners
Git 101 for Beginners
Advanced Git Tutorial
Advanced Git Tutorial
Git basic
Git basic
Intro to git and git hub
Intro to git and git hub
Git with bitbucket
Git with bitbucket
Git for beginners
Git for beginners
Git and Github Session
Git and Github Session
Git and git flow
Git and git flow
Introduction git
Introduction git
Git One Day Training Notes
Git One Day Training Notes
Git and github
Git and github
Learning git
Learning git
Introduction to Git and Github
Introduction to Git and Github
Git Pull Requests
Git Pull Requests
Git Mastery
Git Mastery
Pengenalan Git
Pengenalan Git
GitHub Presentation
GitHub Presentation
Git commands
Git commands
Git flow
Git flow
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
Viewers also liked
Fabric (python)
Fabric (python)
Fanani M. Ihsan
Fanani xen v1
Fanani xen v1
Fanani M. Ihsan
Xibo digital signage
Xibo digital signage
Fanani M. Ihsan
Tutorial lvm
Tutorial lvm
Fanani M. Ihsan
Materi pelatihan java fundamental
Materi pelatihan java fundamental
Fanani M. Ihsan
Teoria del Darwinismo
Teoria del Darwinismo
10alorfer
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI Explainer
Luminary Labs
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving Cars
LinkedIn
Viewers also liked
(8)
Fabric (python)
Fabric (python)
Fanani xen v1
Fanani xen v1
Xibo digital signage
Xibo digital signage
Tutorial lvm
Tutorial lvm
Materi pelatihan java fundamental
Materi pelatihan java fundamental
Teoria del Darwinismo
Teoria del Darwinismo
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI Explainer
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving Cars
Similar to Git
Having fun with Git
Having fun with Git
Ahmad Arif
Git-Dasar
Git-Dasar
Rahmat Sunjani
Surabaya meeetup git
Surabaya meeetup git
Taufan Aditya
Dimensiweb git
Dimensiweb git
Fajri Abdillah
Github
Github
Satria Wiratama Sandi
Berkolaborasi Dengan Git
Berkolaborasi Dengan Git
fajran
Tutorial git by sel
Tutorial git by sel
bahri12
html.pptx
html.pptx
ssuser0c4b0d
Besut Kode - Workshop 2
Besut Kode - Workshop 2
John Vandenberg
Remastering Ubuntu 17.10 Dengan Ubuntu Customization Kit
Remastering Ubuntu 17.10 Dengan Ubuntu Customization Kit
Muhammad Yuga Nugraha
Php gtk
Php gtk
Haswi Haswi
Php GTK Indonesia
Php GTK Indonesia
Albertz Ace-Red
Pembahasan soal paket 1
Pembahasan soal paket 1
Irwansyah Irwan
Dokumentasi Instalasi Network Monitoring System Ganglia on Centos 6
Dokumentasi Instalasi Network Monitoring System Ganglia on Centos 6
Febi Gelar Ramadhan
Pembahasan soal paket 1
Pembahasan soal paket 1
Ygrex Thebygdanns
Git branch strategy
Git branch strategy
Ibnu Triyono
Introducing git
Introducing git
Chico Macheda Linuxer
GoLang_1
GoLang_1
Dimas Prawira
perkenalan git dan cara berkolaborasi dengan git
perkenalan git dan cara berkolaborasi dengan git
bankingboskuh
GiTogether
GiTogether
FikiAlamsyah
Similar to Git
(20)
Having fun with Git
Having fun with Git
Git-Dasar
Git-Dasar
Surabaya meeetup git
Surabaya meeetup git
Dimensiweb git
Dimensiweb git
Github
Github
Berkolaborasi Dengan Git
Berkolaborasi Dengan Git
Tutorial git by sel
Tutorial git by sel
html.pptx
html.pptx
Besut Kode - Workshop 2
Besut Kode - Workshop 2
Remastering Ubuntu 17.10 Dengan Ubuntu Customization Kit
Remastering Ubuntu 17.10 Dengan Ubuntu Customization Kit
Php gtk
Php gtk
Php GTK Indonesia
Php GTK Indonesia
Pembahasan soal paket 1
Pembahasan soal paket 1
Dokumentasi Instalasi Network Monitoring System Ganglia on Centos 6
Dokumentasi Instalasi Network Monitoring System Ganglia on Centos 6
Pembahasan soal paket 1
Pembahasan soal paket 1
Git branch strategy
Git branch strategy
Introducing git
Introducing git
GoLang_1
GoLang_1
perkenalan git dan cara berkolaborasi dengan git
perkenalan git dan cara berkolaborasi dengan git
GiTogether
GiTogether
Git
1.
Git Fanani M.
Ihsan [email_address]
2.
3.
Tool coding para
programmer
4.
Documentasi source code
5.
6.
Centralized VCS (Subversion)
7.
Distributed VCS (Git)
8.
Local VCS
9.
Centralized VCS
10.
Distributed VCS
11.
12.
Linux Kernel
13.
Perl
14.
Eclipse
15.
Gnome
16.
17.
Ruby on Rails
18.
Android
19.
PostgreSQL
20.
Debian
21.
X.org
22.
Git Workflow
23.
24.
# sudo apt-get
install git-core
25.
Redhat Based
26.
# yum install
git-core
27.
Windows
28.
Bisa gunakan mysgit
(CLI) , tortoise git (GUI)
29.
http://code.google.com/p/msysgit
30.
Mac
31.
Tersedia installer for
mac http://code.google.com/p/git-osx-installer
32.
33.
$ git config
--global user.name "Fanani M. Ihsan"
34.
$ git config
--global user.email contact@fanani.net
35.
Additional
36.
$ git config
--global color.ui true
37.
$ git config
--global core.editor geany
38.
Cek Configuration
39.
$ git config
--list
40.
user.name=Fanani M. Ihsan
41.
user.email=contact@fanani.net
42.
color.ui=true
43.
core.editor=geany
44.
Git Basic
45.
46.
Git init
47.
Add
48.
First commit
49.
Enjoy !
50.
Git Basic Operation
Source from : http://endy.artivisi.com
51.
52.
Commit : digunakan
untuk memindah file yang ada di stagging area ke dalam repository
53.
54.
untuk melihat status
perubahan bisa gunakan git status file yang ada di working directory , dan stagging area
55.
$ git status
56.
Git Diff
57.
Digunakan untuk membandingkan
perubahan sebelum perubahan
58.
$ git diff
59.
Meld
60.
Sama seperti git
diff fungsinya , tapi dengan tampilan gui , sehingga lebih mudah di baca
61.
62.
Untuk itu buat
file .gitignore untuk memberikan daftar file yang tidak akan terdeteksi perubahnnya oleh git
63.
64.
$ git mv
file_from file_to
65.
Remove file
66.
$ git rm
file_to_remove
67.
68.
http://progit.org/book/ch2-3.html
69.
Gitg
70.
Tool yang sangat
membantu melihat log perubahan dengan basis gui
71.
$ sudo apt-get
install gitg
72.
73.
Digunakan untuk menambahkan
perubahan pada commit terahir
74.
75.
$ git reset
76.
Git reset -
-hard HEAD
77.
$ git reset
- -hard HEAD
78.
Git resset -
-hard <log number>
79.
$ git reset
- -hard 7fc6387
80.
Git Remote and
Github
81.
82.
Local PC masing-masing
83.
Remote Repository
84.
Server git ,
such as : Github
85.
86.
Create local repository
87.
Create Github repository
88.
Add remote repo
pada local repository
89.
Push Master Branch
90.
91.
Menggunakan username dan
password
92.
Ssh-keygen
93.
Menggunakan ssh public
key
94.
95.
$ ssh-keygen
96.
Result
97.
$ ls ~/.ssh
98.
id_rsa id_rsa.pub
99.
Public Key
100.
Copy to github
101.
Private Key
102.
Pasangan dari public
key , harus di jaga kerahasiaannya karena berurusan dengan security
103.
104.
Tambahkan remote repository
di github
105.
$ git remote
add origin git@github.com: username / <project_name> .git
106.
Upload master branch
107.
$ git push
-u origin master
108.
Cek daftar remote
repository
109.
$ git remote
-v
110.
Enjoy !!!
111.
112.
Digunakan untuk menggandakan
repository remote ke local.
113.
Pull
114.
Digunakan untuk mengupdate
perubahan version dari remote ke local.
115.
Push
116.
Digunakan untuk mengupload
perubaahan yang terjadi dari local ke remote
117.
118.
$ git remote
add other git@github.com:fanani/project-git-2.git
119.
Push Remote baru
120.
$ git push
-u other master
121.
Fetching (sinkonisasi antara
origin dan other)
122.
$ git fetch
other
123.
note :
git fetch hanya merubah history yang ada di remote , bukan di local . Sehingga biasanya setelah kita melakukan feth , harus dilakukan pull agar local repo sama dengan remote remo
124.
Inspeksi hubungan remote
dan local
125.
$ git remote
show origin
126.
127.
$ git remote
rename <old_remote_name> <new_remote_name>
128.
Remove
129.
$ git remote
rm <remote_name>
130.
Cek
131.
$ git remote
-v
132.
133.
Create Tag
134.
$ git tag
-a v1.0 -m "ini versi 1.0"
135.
List Tag
136.
$ git tag
137.
Show Detail
138.
$ git show
v1.0
139.
Git Advaced
140.
141.
Untuk memastikan code
tetap bersih pada branch utama
142.
Default branch adalah
master
143.
144.
$ git branch
fitur-baru
145.
Show branch list
146.
$ git branch
147.
fitur-baru
148.
* master
149.
Pindah branch
150.
$ git checkout
fitur-baru
151.
Switched to branch
'fitur-baru'
152.
Delete branch
153.
$ git branch
-d fitur-baru
154.
Deleted branch fitur-baru
(was 3ca215d).
155.
156.
$ git merge
fitur-baru
157.
Updating 4450787..4b1fb2b
158.
Fast-forward
159.
file.txt |
2 ++
160.
1 files changed,
2 insertions(+), 0 deletions(-)
161.
162.
Solusinya programmer harus
berkomunikasi , code mana yang dipakai dan paling benar
163.
164.
Dengan git mergetoot
(meld)
165.
$ git mergetool
166.
167.
$ git push
origin fitur-baru
168.
Copy branch dari
remote ke local
169.
$ git push
origin fitur-baru
170.
Copy branch dari
remote ke local
171.
$ git checkout
-b testing remotes/origin/testing
172.
Branch testing set
up to track remote branch testing from origin.
173.
Switched to a
new branch 'testing'
174.
$ git branch
175.
master
176.
* testing
177.
178.
Finish
179.
Git Fanani M.
Ihsan [email_address]
Download now