Git Product home page Git Product logo

lab-pbo-5-2024's Introduction

LAB PBO 5 2024 - MUHAMMAD THORIQ ALI SAID

Repositori Tugas Pemrograman Berorientasi Objek 2024

Requirements:

  1. Buat akun GitHub (https://github.com/)
  2. Download Git (https://git-scm.com/)

Alur pengumpulan tugas ke repositori ini:

  1. Fork repositori ini

  2. Clone repositori hasil fork anda

    git clone https://github.com/YOUR_USERNAME/LAB-PBO-03-2024.git
    
  3. Setelah anda clone, masuk ke folder hasil clone tersebut lalu buat branch dengan nama NIM anda

    cd LAP-PBO-03-2024
    git branch NIM_ANDA
    git checkout NIM_ANDA
    git config user.name USERNAME_GITHUB
    git config user.email EMAIL_GITHUB
    
  4. Setelah anda pindah ke branch yang telah anda buat, buat sebuah folder dengan nama NIM anda dan masuk ke folder tersebut.

    mkdir NIM_ANDA
    cd NIM_ANDA
    
  5. Didalam folder tersebut, buat sebuah folder dengan nama Praktikum-n, n = praktikum keberapa

    mkdir "Praktikum-n"
    cd "Praktikum-n"
    
    CATATAN: n DI SINI ADALAH NOMOR PRAKTIKUM KE BERAPA
    CONTOH: Praktikum-1
    
  6. Semua file untuk tugas praktikum ke-n, disimpan kedalam folder Praktikum-n

  7. Setiap membuat file atau melakukan perubahan, lakukan proses commit dengan pesan yang deskriptif

    CATATAN: NAMA FILE TUGAS ADALAH "TPn_noSoal_NIM.java"
    CONTOH: TP1_1_H071201080.java , TP2_3_H071201080.java
    
    git add . #perintah ini memilih seluruh file sekaligus
    # atau
    git add "NIM/Praktikum n/FilePythonYangBerubahAtauDitambahkan.java" #perintah ini memilih file tertentu
    
    SAYA SARANKAN JANGAN PAKAI git add . UNTUK MENGHINDARI PENAMBAHAN UNTUK SEMUA FILE TERMASUK FILE YANG TIDAK DIINGINKAN
    LEBIH BAIK MEMAKAI git add "NIM/Praktikum n/nama_file.java" UNTUK MENAMBAHKAN FILE
    
    git status untuk mengecek apakah file sudah ter add atau tidak.
    Jika file yang ingin di add sudah berwarna hijau lanjut ke commit.
    Jika file yang ingin di add berwarna merah lakukan add terlebih dahulu
    
    git commit -m "pesan mengenai penambahan atau perubahan apa yang anda lakukan"
    
  8. Setelah asistensi dan tugas anda disetujui, push seluruh file jawaban yang telah anda buat

    # pastikan proses commit telah selesai terhadap setiap file
    git push origin NIM_ANDA
    

    Jika sebelumnya anda belum pernah menghubungkan Git di komputer anda dengan akun GitHub anda, maka anda akan diminta untuk mengisi username dan password untuk melakukan push ke repo GitHub anda.

    # username = username anda
    # password = persocal access token anda
    

    Cara membuat personal access token:

    #1. Klik profile anda pada pojok kanan atas GitHub
    #2. Pilih menu settings
    #3. Scroll ke bagian bawah dan pilih menu Dveloper settings
    #4. Pilih Prsonal access tokens
    #5. Pilih Generate new tokes
    #6. Tuliskan note untuk token anda (ex: Token for LAB-PBO-03-2024)
    #7. Atur waktu expiration token anda (sesuai keinginan anda)
    #8. Pada select scope, ceklis box repo
    #9. Klik generate new token
    #10. Pastikan untuk meng-copy token anda dan menyimpannya, karena token hanya bisa diliat sekali (*Jika hilang, buat token baru)
    
  9. Masuk ke akun GitHub anda, dan buka repo yang telah anda fork dan clone. Lihat perubahan yang terjadi pada repo tersebut dan pastikan bahwa tugas yang telah anda push sesuai dan berada pada repo tersebut.

  10. Pilih menu Pull request dan lakukan pull request pada tugas praktikum anda.

  11. Berdoa Mko Di ACC, Klau ada kue-nya auto ACC

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.