git&github - android developer days 2013
DESCRIPTION
TRANSCRIPT
1
Burak Aydın – burakaydin.net.tr@burakaydn
Mert Şimsek – mertsimsek.net@orhunmertsimsek
git & github
10.04.2023
gitVersion Control Like Him
Dallanma ve Birleştirme
Açık Kaynak
Dağıtık Çalışma
Hız ve Boyut
Windowshttp://git-scm.com/download/
win
Linuxsudo apt-get install git-core
Mac
~/.gitconfig
$ git config –-global user.name "Ad Soyad"$ git config –-global user.email "[email protected]"
Konfigürasyon
Yeni bir kod deposu
$ git init $ echo "/bin" >> .gitignore$ echo "/gen" >> .gitignore$ git add .
Initial commit
$ git commit –m "neden?"
git log
$ git log
commit b75757a711da3cdc7d102ac9c6c1f23dd1cc2fdeAuthor: andromedateam <[email protected]>Date: Wed Jun 12 17:45:38 2013 +0300 Initial commit
git status
$ git status# On branch master# Untracked files:# (use "git add <file>..." to include in what will be committed)## Git_CheatSheet_tr.mdnothing added to commit but untracked files present (use "git add" to track)
Uzak kod deposu
$ git remote add origin git@git...$ git push origin master$ git pull origin master
$ git clone [email protected]:mertsimsek/git-cheatsheet.git
$ git branch yeni_özellik$ git checkout branch_ismi$ git merge branch_ismi
$ git push –f origin master$ git pull -f
git tag
$ git tag etiket_adı$ git checkout etiket_adı
Github – github.com Bitbucket – bitbucket.com Assembla – assembla.com Google Code – code.google.com
is the best place to share code
goo.gl/UkMV8
DEMO
Teşekkürler…
Burak Aydın – burakaydin.net.tr
@burakaydn
Mert Şimsek – mertsimsek.net
@orhunmertsimsek