This document introduces Git, an open source version control system. It discusses how Git allows managing changes to files over time by tracking revisions, branches and merges. It provides instructions for initializing a Git repository, adding and committing files, and collaborating by cloning repositories and pushing local changes to remote repositories.
Dokumen tersebut memberikan ringkasan tentang konsep dasar Git sebagai version control system, meliputi pengenalan Git, konfigurasi awal, repository, tiga tahapan file (working directory, staging area, commit), log commit, reset commit, amend commit, dan fitur-fitur lainnya seperti ignore, blame, dan alias.
Git is a free and open source distributed version control system designed by Linus Torvalds in 2005 to handle everything from small to large projects with speed and efficiency. It allows for tracking changes to code, collaborative work, and reverting to previous versions of code. GitHub is a site for hosting Git repositories online that adds features like documentation, bug tracking, and code review via pull requests. Common Git commands include git init to initialize a repository, git add to stage changes, git commit to save changes to the project history, and git push to upload changes to a remote repository.
This document provides an introduction to Git basics and concepts. It covers version control systems and why distributed version control is useful. It then discusses how Git originated from the Linux kernel project. The document reviews basic Git commands and workflows for setting up a repository, tracking and committing changes. It also covers viewing differences between commits, staging files, and undoing or amending commits. Finally, it discusses sharing repositories remotely including adding remotes, pushing and pulling from remote repositories, and cloning repositories from remote URLs.
The document provides an overview of version control systems and introduces Git and GitHub. It discusses the differences between centralized and distributed version control. It then covers the basics of using Git locally including initialization, staging files, committing changes, branching and merging. Finally, it demonstrates some common remote operations with GitHub such as pushing, pulling and tagging releases.
This document discusses using Git and GitHub for version control. It covers Git terminology and commands for initializing a Git repository, configuring Git, adding and committing files, branching and merging, and using an code editor with Git. Key points include using 'git init' to create a new local repository, 'git add' to stage files for committing, 'git commit' to save changes to the repository, and 'git branch', 'git checkout' and 'git merge' for managing branches. The document provides guidance on writing good commit messages and installing Git on different operating systems.
Introduction to Gitlab | Gitlab 101 | Training SessionAnwarul Islam
I actually described in this slide how to use Gitlab with git. I explained what is git, push, pull, clone, commit etc. so, you can use this slide to learn or tech someone.
This document introduces Git, an open source version control system. It discusses how Git allows managing changes to files over time by tracking revisions, branches and merges. It provides instructions for initializing a Git repository, adding and committing files, and collaborating by cloning repositories and pushing local changes to remote repositories.
Dokumen tersebut memberikan ringkasan tentang konsep dasar Git sebagai version control system, meliputi pengenalan Git, konfigurasi awal, repository, tiga tahapan file (working directory, staging area, commit), log commit, reset commit, amend commit, dan fitur-fitur lainnya seperti ignore, blame, dan alias.
Git is a free and open source distributed version control system designed by Linus Torvalds in 2005 to handle everything from small to large projects with speed and efficiency. It allows for tracking changes to code, collaborative work, and reverting to previous versions of code. GitHub is a site for hosting Git repositories online that adds features like documentation, bug tracking, and code review via pull requests. Common Git commands include git init to initialize a repository, git add to stage changes, git commit to save changes to the project history, and git push to upload changes to a remote repository.
This document provides an introduction to Git basics and concepts. It covers version control systems and why distributed version control is useful. It then discusses how Git originated from the Linux kernel project. The document reviews basic Git commands and workflows for setting up a repository, tracking and committing changes. It also covers viewing differences between commits, staging files, and undoing or amending commits. Finally, it discusses sharing repositories remotely including adding remotes, pushing and pulling from remote repositories, and cloning repositories from remote URLs.
The document provides an overview of version control systems and introduces Git and GitHub. It discusses the differences between centralized and distributed version control. It then covers the basics of using Git locally including initialization, staging files, committing changes, branching and merging. Finally, it demonstrates some common remote operations with GitHub such as pushing, pulling and tagging releases.
This document discusses using Git and GitHub for version control. It covers Git terminology and commands for initializing a Git repository, configuring Git, adding and committing files, branching and merging, and using an code editor with Git. Key points include using 'git init' to create a new local repository, 'git add' to stage files for committing, 'git commit' to save changes to the repository, and 'git branch', 'git checkout' and 'git merge' for managing branches. The document provides guidance on writing good commit messages and installing Git on different operating systems.
Introduction to Gitlab | Gitlab 101 | Training SessionAnwarul Islam
I actually described in this slide how to use Gitlab with git. I explained what is git, push, pull, clone, commit etc. so, you can use this slide to learn or tech someone.
This document provides an introduction to Git and GitHub. It outlines the basics of Git including initializing repositories, tracking changes, branching, merging, and resolving conflicts. It also covers GitHub concepts such as cloning repositories from GitHub to a local machine and pushing/pulling changes between local and remote repositories. The document explains how to collaborate on projects hosted on GitHub using Git.
This document provides an overview of Git and GitHub. It discusses what Git is, how it works by storing content in trees and commits, and its advantages like efficiency and handling non-linear development. It also covers installing and configuring Git, including common settings. Key Git workflows like staging changes and committing are demonstrated. The document explains Git's three-tree model and inspection tools. It emphasizes the importance of branching in Git and how branches are cheap to create. Merging branches is shown to be powerful in Git.
Git adalah kaedah pengawalan versi kod sumber sedangkan GitHub merupakan perkhidmatan penyimpanan repositori kod sumber. Dokumen ini membincangkan perbezaan antara Git dengan GitHub serta mengenal pasti alternatif kepada GitHub seperti Git OSDEC yang menyediakan perkhidmatan penyimpanan repositori percuma untuk agensi kerajaan Malaysia. Ia juga menerangkan konsep asas sistem repositori, staging, pull dan push dalam Git.
This document provides an outline for a course on learning Git version control. The course covers getting Git setup, the basic concepts and workflow of Git, branching and merging, resolving conflicts, working with remote repositories, and various Git commands. The document lists several modules that will be covered, including getting started, everyday Git usage, branching, merging and rebasing, additional tools and concepts, and advice on applying the skills learned. The goal is to teach participants how to install and use Git for version control on individual, local, and distributed projects.
Git is a version control system for tracking changes in computer files and coordinating work on those files among multiple people.
This PPT describes most used commands.
To introduce and motivate some best practice around version control and Git.
Resources:
https://en.wikipedia.org/wiki/Version_control
https://git-scm.com/
https://try.github.io
http://rogerdudler.github.io/git-guide/
http://ohshitgit.com/
https://www.atlassian.com/git/tutorials
https://www.datacamp.com/courses/introduction-to-git-for-data-science
This document provides a summary of Git in 10 minutes. It begins with an overview and breakdown of the content which includes explanations of what Git is, how it works, the GitHub flow, frequently used commands, confusions around undoing changes, and useful links. The body then delves into each section providing more details on Distributed version control, local vs remote operations, the GitHub flow process, example commands for undoing changes, and resources for additional learning.
This document provides an overview of Git commands and workflows:
- It introduces basic Git commands for setting up a local repository, adding and committing files, viewing the status and differences between commits, ignoring files, and more.
- Common workflows are demonstrated including cloning a repository, making changes and committing them locally, and pushing changes to a remote repository.
- More advanced topics are covered like branching, merging, rebasing, resolving conflicts, and using tools to help with these processes.
- Configuration options and tips are provided to customize Git behavior and inspect repositories.
Git is a distributed revision control system that is widely used in the software development industry. The presentation was used in a lecture delivered in BITS-Pilani, India. The lecture served as a basic crash course on Git.
First, it sets off with a guide to install and configure git on various platforms.
Then, the basic working concepts of Git are explained.
This is followed by a detailed step-by-step guided demonstration of a sample workflow in Git.
Afterwards, Some auxillary commands that are frequently used are discussed briefly.
Finally, basic concepts of branching and merging are detailed.
The presentation ends with a few possible merge conflicts that occur in Git.
This document discusses best practices for writing Dockerfiles. It begins with a refresher on images, Dockerfile build processes, and areas for improvement. Examples are provided of optimizing a sample Dockerfile to improve build caching, reduce image size, and increase reproducibility. Specific techniques covered include ordering commands to leverage caching, using official base images, multi-stage builds, and build arguments. Benchmarks show the optimized Dockerfile builds faster and produces smaller images.
Github is a code hosting platform that allows developers to collaborate on projects. It uses Git for version control and storing a project's codebase and file history. Developers can work together using features like forking repositories, creating branches, submitting pull requests, and discussing code changes through issues. This allows teams to efficiently build and maintain projects together.
This document provides an overview of Git and GitHub. It describes key Git concepts and commands like commit, push, pull, clone, fetch, merge, diff, branching, and .gitignore. It also provides step-by-step instructions for initializing a Git repository, making configurations, adding and committing files, checking out different versions, comparing changes, removing files, pushing changes to remote repositories, cloning repositories, fetching updates, creating and merging branches, and deleting branches. The goal is to explain both the theory and practical usage of version control with Git and GitHub.
This document provides an introduction to using GitHub, including:
- How to set up a GitHub account and add the Student Developer Pack for unlimited private repositories.
- Basic terminology like repositories, commits, pushes, pulls, branches, and pull requests.
- Tutorials for managing GitHub repositories through the web interface and command line, covering tasks like cloning repositories, adding/committing/pushing files, and adding collaborators.
GitHub Actions is a great addition to the GitHub toolchain, but what can you use them for beyond building the code in your GitHub repository?
In this session Morten Christensen (https://twitter.com/sitereactor), dive into what a GitHub Action actually is and how it can be used through examples and demos.
We will have a look at workflows related to Continuous Integration / Continuous Deployment and open source projects - and finally we will look at how you can extend your workflows with your own Actions.
By the end of this session you should have a good idea of how you can utilize GitHub Actions and Workflows to automate anything and everything related to your GitHub repository. So expect to see a lot of YAML :)
Github is an online hosting service for software development and version control that allows developers to store code and documentation in online repositories. Developers can collaborate on projects by making changes to code and documentation that are tracked by the version control system Git. Git allows developers to revert files or entire projects to previous versions, compare changes over time, experiment safely, and keep a revision history of the project.
The document provides an overview of Git and its usage. It introduces Git as a source code management and distributed version control system. Key topics covered include setting up Git, creating local and remote repositories, tracking changes using commits, and collaborating through branches and by pushing to remote repositories. The document also includes exercises for readers to practice common Git commands.
With these slides we introduce the concept of source control and teach the core features to using Git, GitHub and BitBucket. You can find the accompanying video here. https://youtu.be/lZpNrCgGvuI
Jenkins is the leading open source continuous integration tool. It builds and tests our software continuously and monitors the execution and status of remote jobs, making it easier for team members and users to regularly obtain the latest stable code.
This document summarizes a presentation given at DrupalCamp in Athens on December 12, 2010 about Git and GitHub. The presentation introduced Git as a distributed version control system designed for speed and efficiency. It explained some of Git's core concepts like snapshots, branches, merging, and its distributed nature. It also promoted GitHub as a social coding platform that improves collaboration and code hosting for both open source and private projects. The presentation aimed to help attendees learn Git for their own benefit and prepare for Drupal moving to GitHub.
The document discusses Git and GitHub. It begins with an overview of distributed version control systems (DVCS) like Git and how they differ from centralized version control systems. It then covers the basics of Git, including installing Git, initializing repositories, tracking changes, branching and merging. Finally, it discusses GitHub and how developers can use features like forking, pull requests and wikis to collaborate on projects hosted there. Common Git workflows like Git flow are also introduced.
Git adalah perangkat pengontrol versi yang populer digunakan oleh perusahaan besar seperti Google, Facebook, dan Microsoft. Git memungkinkan pengguna untuk bekerja pada berbagai cabang kode, melakukan rollback ketika terjadi kesalahan, dan melihat perubahan antara versi berbeda. Git juga memungkinkan kolaborasi tim dan menyimpan riwayat proyek.
This document provides an introduction to Git and GitHub. It outlines the basics of Git including initializing repositories, tracking changes, branching, merging, and resolving conflicts. It also covers GitHub concepts such as cloning repositories from GitHub to a local machine and pushing/pulling changes between local and remote repositories. The document explains how to collaborate on projects hosted on GitHub using Git.
This document provides an overview of Git and GitHub. It discusses what Git is, how it works by storing content in trees and commits, and its advantages like efficiency and handling non-linear development. It also covers installing and configuring Git, including common settings. Key Git workflows like staging changes and committing are demonstrated. The document explains Git's three-tree model and inspection tools. It emphasizes the importance of branching in Git and how branches are cheap to create. Merging branches is shown to be powerful in Git.
Git adalah kaedah pengawalan versi kod sumber sedangkan GitHub merupakan perkhidmatan penyimpanan repositori kod sumber. Dokumen ini membincangkan perbezaan antara Git dengan GitHub serta mengenal pasti alternatif kepada GitHub seperti Git OSDEC yang menyediakan perkhidmatan penyimpanan repositori percuma untuk agensi kerajaan Malaysia. Ia juga menerangkan konsep asas sistem repositori, staging, pull dan push dalam Git.
This document provides an outline for a course on learning Git version control. The course covers getting Git setup, the basic concepts and workflow of Git, branching and merging, resolving conflicts, working with remote repositories, and various Git commands. The document lists several modules that will be covered, including getting started, everyday Git usage, branching, merging and rebasing, additional tools and concepts, and advice on applying the skills learned. The goal is to teach participants how to install and use Git for version control on individual, local, and distributed projects.
Git is a version control system for tracking changes in computer files and coordinating work on those files among multiple people.
This PPT describes most used commands.
To introduce and motivate some best practice around version control and Git.
Resources:
https://en.wikipedia.org/wiki/Version_control
https://git-scm.com/
https://try.github.io
http://rogerdudler.github.io/git-guide/
http://ohshitgit.com/
https://www.atlassian.com/git/tutorials
https://www.datacamp.com/courses/introduction-to-git-for-data-science
This document provides a summary of Git in 10 minutes. It begins with an overview and breakdown of the content which includes explanations of what Git is, how it works, the GitHub flow, frequently used commands, confusions around undoing changes, and useful links. The body then delves into each section providing more details on Distributed version control, local vs remote operations, the GitHub flow process, example commands for undoing changes, and resources for additional learning.
This document provides an overview of Git commands and workflows:
- It introduces basic Git commands for setting up a local repository, adding and committing files, viewing the status and differences between commits, ignoring files, and more.
- Common workflows are demonstrated including cloning a repository, making changes and committing them locally, and pushing changes to a remote repository.
- More advanced topics are covered like branching, merging, rebasing, resolving conflicts, and using tools to help with these processes.
- Configuration options and tips are provided to customize Git behavior and inspect repositories.
Git is a distributed revision control system that is widely used in the software development industry. The presentation was used in a lecture delivered in BITS-Pilani, India. The lecture served as a basic crash course on Git.
First, it sets off with a guide to install and configure git on various platforms.
Then, the basic working concepts of Git are explained.
This is followed by a detailed step-by-step guided demonstration of a sample workflow in Git.
Afterwards, Some auxillary commands that are frequently used are discussed briefly.
Finally, basic concepts of branching and merging are detailed.
The presentation ends with a few possible merge conflicts that occur in Git.
This document discusses best practices for writing Dockerfiles. It begins with a refresher on images, Dockerfile build processes, and areas for improvement. Examples are provided of optimizing a sample Dockerfile to improve build caching, reduce image size, and increase reproducibility. Specific techniques covered include ordering commands to leverage caching, using official base images, multi-stage builds, and build arguments. Benchmarks show the optimized Dockerfile builds faster and produces smaller images.
Github is a code hosting platform that allows developers to collaborate on projects. It uses Git for version control and storing a project's codebase and file history. Developers can work together using features like forking repositories, creating branches, submitting pull requests, and discussing code changes through issues. This allows teams to efficiently build and maintain projects together.
This document provides an overview of Git and GitHub. It describes key Git concepts and commands like commit, push, pull, clone, fetch, merge, diff, branching, and .gitignore. It also provides step-by-step instructions for initializing a Git repository, making configurations, adding and committing files, checking out different versions, comparing changes, removing files, pushing changes to remote repositories, cloning repositories, fetching updates, creating and merging branches, and deleting branches. The goal is to explain both the theory and practical usage of version control with Git and GitHub.
This document provides an introduction to using GitHub, including:
- How to set up a GitHub account and add the Student Developer Pack for unlimited private repositories.
- Basic terminology like repositories, commits, pushes, pulls, branches, and pull requests.
- Tutorials for managing GitHub repositories through the web interface and command line, covering tasks like cloning repositories, adding/committing/pushing files, and adding collaborators.
GitHub Actions is a great addition to the GitHub toolchain, but what can you use them for beyond building the code in your GitHub repository?
In this session Morten Christensen (https://twitter.com/sitereactor), dive into what a GitHub Action actually is and how it can be used through examples and demos.
We will have a look at workflows related to Continuous Integration / Continuous Deployment and open source projects - and finally we will look at how you can extend your workflows with your own Actions.
By the end of this session you should have a good idea of how you can utilize GitHub Actions and Workflows to automate anything and everything related to your GitHub repository. So expect to see a lot of YAML :)
Github is an online hosting service for software development and version control that allows developers to store code and documentation in online repositories. Developers can collaborate on projects by making changes to code and documentation that are tracked by the version control system Git. Git allows developers to revert files or entire projects to previous versions, compare changes over time, experiment safely, and keep a revision history of the project.
The document provides an overview of Git and its usage. It introduces Git as a source code management and distributed version control system. Key topics covered include setting up Git, creating local and remote repositories, tracking changes using commits, and collaborating through branches and by pushing to remote repositories. The document also includes exercises for readers to practice common Git commands.
With these slides we introduce the concept of source control and teach the core features to using Git, GitHub and BitBucket. You can find the accompanying video here. https://youtu.be/lZpNrCgGvuI
Jenkins is the leading open source continuous integration tool. It builds and tests our software continuously and monitors the execution and status of remote jobs, making it easier for team members and users to regularly obtain the latest stable code.
This document summarizes a presentation given at DrupalCamp in Athens on December 12, 2010 about Git and GitHub. The presentation introduced Git as a distributed version control system designed for speed and efficiency. It explained some of Git's core concepts like snapshots, branches, merging, and its distributed nature. It also promoted GitHub as a social coding platform that improves collaboration and code hosting for both open source and private projects. The presentation aimed to help attendees learn Git for their own benefit and prepare for Drupal moving to GitHub.
The document discusses Git and GitHub. It begins with an overview of distributed version control systems (DVCS) like Git and how they differ from centralized version control systems. It then covers the basics of Git, including installing Git, initializing repositories, tracking changes, branching and merging. Finally, it discusses GitHub and how developers can use features like forking, pull requests and wikis to collaborate on projects hosted there. Common Git workflows like Git flow are also introduced.
Git adalah perangkat pengontrol versi yang populer digunakan oleh perusahaan besar seperti Google, Facebook, dan Microsoft. Git memungkinkan pengguna untuk bekerja pada berbagai cabang kode, melakukan rollback ketika terjadi kesalahan, dan melihat perubahan antara versi berbeda. Git juga memungkinkan kolaborasi tim dan menyimpan riwayat proyek.
Dokumen ini memberikan penjelasan tentang Git version control. Git merupakan salah satu version control yang tidak membutuhkan server untuk melakukan perubahan atau melihat riwayat revisi. Dokumen ini juga menjelaskan cara instalasi Git, penyedia layanan Git seperti Github dan Gitlab, serta perintah dasar Git seperti clone, init, pull, status, add, commit, dan push. Ada juga demo penggunaan perintah-perintah Git.
Dokumen tersebut membahas penggunaan version control system Git untuk mengelola perubahan kode program dan berkolaborasi secara terdistribusi. Git memungkinkan pengguna untuk membuat snapshot berulang waktu dari file projek, menyimpan riwayat perubahan, dan memungkinkan pemulihan versi sebelumnya. Cara kerjanya meliputi inisialisasi repository, menambahkan file ke staging area, dan commit perubahan beserta pesan untuk mencatat perubahan.
Dokumen tersebut membahas tentang Git, yaitu tool untuk pengembangan dan kolaborasi tim. Git digunakan untuk mengembangkan website secara kolaboratif dengan orang lain. Dokumen ini menjelaskan proses dasar penggunaan Git mulai dari mendaftar akun, membuat repository, mengunggah file ke repository remote, dan merujuk pada referensi untuk mempelajari Git lebih lanjut.
Dokumen ini membahas tentang kolaborasi menggunakan Git. Git digunakan untuk berkolaborasi dengan mengirim dan menerima perubahan kode antar pengembang. Pengembang dapat bekerja sama dengan menggunakan perintah seperti git clone, git remote, git push, dan git pull untuk berbagi kode dan memperbarui kode masing-masing.
Lokakarya ini membahas tentang Git dan GitHub serta berbagai kegunaannya. Git digunakan untuk mengelola berkas-berkas yang diedit oleh banyak orang secara bersama-sama, sedangkan GitHub merupakan situs untuk berbagi kode secara online dan menyimpan proyek-proyek pengguna. Lokakarya ini juga menjelaskan berbagai fitur GitHub seperti penyimpanan kode terbuka, penyimpanan data geospasial, pengerjaan
ANALISIS PENGARUH INDUSTRI BATU BARA TERHADAP PENCEMARAN UDARA.pdfnarayafiryal8
Industri batu bara telah menjadi salah satu penyumbang utama pencemaran udara global. Proses ekstraksi batu bara, baik melalui penambangan terbuka maupun penambangan bawah tanah, menghasilkan debu dan gas beracun yang dilepaskan ke atmosfer. Gas-gas tersebut termasuk sulfur dioksida (SO2), nitrogen oksida (NOx), dan partikel-partikel halus (PM2.5) yang berbahaya bagi kesehatan manusia dan lingkungan. Selain itu, pembakaran batu bara di pembangkit listrik dan industri menyebabkan emisi karbon dioksida (CO2), yang merupakan penyebab utama perubahan iklim global dan pemanasan global.
Pencemaran udara yang disebabkan oleh industri batu bara juga memiliki dampak lokal yang signifikan. Di sekitar area penambangan, debu batu bara yang dihasilkan dapat mengganggu kesehatan masyarakat dan ekosistem lokal. Paparan terus-menerus terhadap debu batu bara dapat menyebabkan masalah pernapasan seperti asma dan bronkitis, serta berkontribusi pada penyakit paru-paru yang lebih serius. Selain itu, hujan asam yang disebabkan oleh emisi sulfur dioksida dapat merusak tanaman, air tanah, dan ekosistem sungai, mengancam keberlanjutan lingkungan di sekitar lokasi industri batu bara.
9. Perintah yang sering digunakan
●Git Add
●Git Commit
●Git Push
●Git Fetch
●Git Rebase
●Git Checkout
●Git Remote
●Git Add
●Git Commit
●Git Push
●Git Fetch
●Git Rebase
●Git Checkout
●Git Remote
●Git Stash
●Git Log
●Git Status
●Git Diff
●Git Pull
●Git Clone
●Git Config
●Git Init
10. Git init
●Berfungsi untuk inisiasi/reinisiasi direktory sebagai
working directory berbasis git
●Contoh: git init testing
11. Git Config
●Berfungsi untuk menambahkan konfigurasi git.
●Umumnya dipakai untuk setting nama dan email secara global
●Contoh: git config user.name “Full Name”
Contoh: git config user.email “email@domain.com”
12. Git Clone
●Berfungsi untuk clone/menggandakan repository
●Umumnya untuk clone repository dari server seperti Github,
Bitbucket
●Contoh: git clone git@github.com:username/repo.git
13. GIT PULL
●Berfungsi untuk mengambil perubahan yang ada di server (jika ada) dan
●Merupakan shorthand dari “git fetch” dan “git merge FETCH_HEAD”
●Contoh: git pull
Contoh: git pull origin
14. GIT STATUS
●Berfungsi untuk menampilkan perbedaan file-file yang sudah diubah dengan
yang sudah tersimpan dalam commit secara umum
●Git status akan menampilkan daftar lokasi file yang berubah atau file yang
belum masuk dalam index commit
●Contoh: git status
15. GIT DIFF
●Berfungsi untuk menampilkan perbedaan file-file yang sudah diubah d
engan yang sudah tersimpan dalam commit secara spesifik
●Git diff akan menampilkan perbedaan apa saja yang sudah ditambahk
an atau dikurangi
●Git diff biasanya dipakai untuk melihat perbidaan antara satu branch/ta
g dengan branch/tag yang lain
●Contoh: git diff
Contoh: git diff master origin/master
16. GIT STASH
Berfungsi untuk menyimpan perubahan yang sudah dilakukan dan
kembali ke state clean working directory terakhir.
●Contoh: git stash (untuk menyimpan)
git stash list (untuk melihat daftar stash)
git stash pop (untuk mengembalikan yang disimpan terakhir
17. GIT LOG
●Berfungsi untuk menampilkan daftar log ya
ng sudah tersimpan yang ada di branch/tag/
commit
●Contoh: git log
18. GIT CHECKOUT
●Berfungsi untuk pindah ke branch/tag/commit
●Bisa juga digunakan untuk membuat branch baru dengan
commit yang sama dengan working branch/log/commit
●Contoh: git checkout develop
git checkout -b hello
git checkout -b hello master
git checkout -b hello 75d0cff59
19. GIT ADD
●Berfungsi untuk menambahkan kode yang sudah
dimodifikasi atau baru ditambahkan ke dalam staging
●Contoh: git add .
git add <lokasi-file>
20. GIT COMMIT
Berfungsi untuk menambahkan snapshot permanent ke
dalam git dari staging area
●Contoh: git commit -m “pesan baru”
git commit -am “pesan ini juga”
21. GIT PUSH
Berfungsi untuk mengupload commit yang ada di local
working repository ke remote repository
●Contoh: git push origin
git push origin master
22. GIT FETCH
Berfungsi untuk mengambil commit terbaru (jika ada)
dari remote
●Contoh: git fetch origin
git fetch origin master
23. GIT REBASE
Berfungsi untuk memindahkan commit yang
belum tersubmit ke remote server menjadi
yang paling atas.
●Contoh: git rebase origin/master
26. Latihan GIT
Pergunaan GIT untuk kolaborasi
●Buat Repository baru
●Tambahkan file baru (README.md)
●Tulis sesuatu di dalam README.md
●Git commit
●Push ke Github
●Edit lagi file README.md
●Push lagi ke Github