Giter VIP home page Giter VIP logo

remote-repository's Introduction

How to Remote Repository in GitHub??

before we talk to far, you should to know what is remote? what is repository?, what is push or pull? what is commit? and another about git!

but in this article, wen jus't will only discuss how to remote a repository, so here we go!

article will be continue in bahasa indonesia

Pastikan sudah menginstall git di computer

cara untuk memastikannya adalah dengan membuka terminal atau CMD di Windows > lalu ketikan git -v jika tampil seperti dibawah ini maka telah menginstall git, namun jika belum maka keterangan versi tersebut tidak akan muncul, maka dari itu silahkan download git pada halaman berikut ini

image

gambar 0. install git

jika sudah berhasil menginstall git kedalam sistem operasi anda, maka selanjutnya dapat lakukan konfigurasi secara global nama dan email anda yang tehubung ke github dengan melakakukan perintah :

git config --global user.name "Nama Anda"
git config --global user.email "[email protected]"

atau seperti gambar dibawah ini :

image

gambar 0.1. configure git

jika sudah berhasil maka anda dapat melihat konfigurasi anda pada list configurasi dengan perintah :

git config --list

Pastikan sudah mempunyai repository di github

image

gambar 1. repository in github

Buka Project File pada Code Editor Visual Studio Code

image

gambar 2. open project folder to code editor

Buka Terminal Pada Code Editor Visual Studio Code

untuk membka terminal pada visual studio code anda dapat memilih menu terminal > pilih new terminal

image

gambar 3. open terminal

Clonning Repository

  • untuk clonning repository anda dapat copy link bagian https (pada gambar 4)
image

gambar 4. open terminal

  • masukan perintah berikut (ganti repository_url dengan link repository yang sudah anda copy sebelumnya) :

  • branch name dapat dilihat, secara default ada yang menggunakan main atau master pada gambar 5.1

    git init
    git remote add origin <repositori_url>
    git pull origin <branch name>
    git add .
    git commit -m "message"
    git push -u origin <branch name>
image

gambar 5. terminal script

Screenshot 2023-09-09 at 00 05 05

gambar 5.1 pilih branch utama

and here we go! sudah berhasil push di github

image

gambar 6. done upload to github

Mau tau cara yang lebih mudah?

misalnya begini : saya sudah memperbarui kode saya seperti dibawah ini, secara otomatis visual studio code bisa mengenali perubahan yang terjadi

image

gambar 7. update code

selanjutnya silahkan klik saya pada tab source control tersebut, lalu anda bisa lakukan commit secara langsung

image

gambar 8. commit without write script

dan terakir lakukan push ke branch master

image

gambar 9. push to branch

License

mirfanlutfi

remote-repository's People

Contributors

irfanltf avatar

Stargazers

Riski Hidayat avatar

Watchers

 avatar

Forkers

nisaauliaa

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.