Git Source Code Management (Version Control)
Git Source Code Management (Version Control)
Selamat Datang
di
SMK TI Pelita Nusantara
PE
L IT IR
I
A NU ED
SANTARA K
Git-Source Code
Management
1
03/10/2014
PE
LIT IR
I
A NU ED
SANTARA K
team work
2
03/10/2014
Version Control
3
03/10/2014
Kolaborasi
4
03/10/2014
5
03/10/2014
6
03/10/2014
Subversion
Bazar
CVS
Mercurial
Git
7
03/10/2014
Source ohloh.net
Jquery
Linux Kernel
Ruby on rails
Android
PostgreSQL
OpenStack
Source : https://github.com/blog/1359-the-octoverse-in-2012
8
03/10/2014
Git Workflow
Perintah Dasar
9
03/10/2014
Git Setup
10
03/10/2014
11
03/10/2014
12
03/10/2014
Perbedaan
Global :
~/.gitconfig
Local
~/public_repo/my_project/.git/config
Perintah Mendasar
- mkdir - config
- cd - init
- touch - add
- cat - commit
- cp - clone
- mv - remote
- rm - pull
- vi - push
13
03/10/2014
$ git init
14
03/10/2014
15
03/10/2014
Edit fileA.txt :
$ echo “hello file A” > fileA.txt
Tambahkan ke staging index dahulu :
$ git add fileA.txt
16
03/10/2014
Log
Menampilkan log yang sudah di commit :
$ git log
Kolaborasi
Team Work
17
03/10/2014
Kolaborasi GitHub
Registrasi Akun Pribadi di
https://github.com
Genarating SSH-Keygen
Buat ssh-keygen baru :
$ ssh-keygen -t rsa –C “alamat_email/nama_host”
18
03/10/2014
Account Setting
Copy id_rsa.pub
19
03/10/2014
verifikasi
20
03/10/2014
Membuat Team
21
03/10/2014
Invite Membering
git@github.com:classroom-
smkti/calculator.git
22
03/10/2014
Create Jobdisk
Program
README.md
LICENSE
.gitignore
Program
23
03/10/2014
README.md
LICENSE
24
03/10/2014
.gitignore
Go.. Program
25
03/10/2014
$ mkdir calculator
$ cd calculator
26
03/10/2014
Git init
$ git init
27
03/10/2014
Git remote
$ git remote -v
Pulling
28
03/10/2014
Pushing
Selesai ...
29