Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menambahkan remote rpository dan membuat git server #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified buku/00-cover.md
100644 → 100755
Empty file.
Empty file modified buku/01-pendahuluan.md
100644 → 100755
Empty file.
Empty file modified buku/02-instalasi.md
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions buku/03-penggunaan.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ Untuk mengunduh sebuah repo anda cukup melakukan :
## Diff dan Patch ##

## Remote Repository ##
Untuk Remote repository, anda bisa melakukan perintah ini :
`git remote set-url origin (alamat repository,misal https://github.com/endymuhardin/buku-git.git)`

## Tips dan Tricks ##

Expand Down
Empty file modified buku/88-bagian-kedua.md
100644 → 100755
Empty file.
29 changes: 29 additions & 0 deletions buku/99-bagian-ketiga.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,36 @@
# Administrasi Sistem Git #

## Membuat Git Server ##
Ketika berhubungan dengan Git hosting, Anda memiliki sejumlah opsi yang tersedia. GitHub, Gitlab dan Bitbucket adalah solusi populer, tetapi menjalankan Git server Anda sendiri merupakan alternatif yang patut dipertimbangkan.

Menyiapkan Git Server memungkinkan Anda membuat repositori pribadi tanpa batasan “free plans” dari pihak penyedia.
SETTING GIT SERVER
Langkah pertama adalah menginstal Git di server Anda.

Jika Anda menggunakan Debian atau Ubuntu, segarkan indeks paket lokal dan instal git dengan menjalankan perintah berikut sebagai user sudo:

-sudo apt update && sudo apt install git

Selanjutnya, buat pengguna baru yang akan mengelola repositori Git:

-sudo useradd -r -m -U -d /home/git -s /bin/bash git

Direktori home user diatur ke /home/git. Semua repositori akan disimpan di bawah direktori ini. Kita tidak menetapkan kata sandi untuk user “git”, login hanya dimungkinkan menggunakan ssh key.

Beralih ke user “git” menggunakan perintah su:

-sudo su - git

Jalankan perintah berikut untuk membuat direktori SSH dan mengatur izin yang benar:

-mkdir -p ~/.ssh && chmod 0700 ~/.ssh

Buat file bernama ~/.ssh/authorized_keys yang akan menampung SSH keys pengguna yang diotorisasi:

-touch ~/.ssh/authorized_keys && chmod 0600 ~/.ssh/authorized_keys

Pengaturan server selesai. Anda sekarang siap untuk membuat repositori Git pertama Anda.

## Integrasi dengan Redmine ##

## Integrasi dengan Jenkins ##
Empty file modified buku/artivisi-template.tex
100644 → 100755
Empty file.
Empty file modified buku/cc-by-sa.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resources/images/01.02.install/github/01-github-dashboard.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resources/images/01.02.install/github/02-github-add-pubkey.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resources/images/01.02.install/putty/02-ssh-save-keypair.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resources/images/README
100644 → 100755
Empty file.