Sử dụng GIT cho người mới bắt đầu (Tiếng Việt)Thanh Bùi
Sử dụng GIT cho người mới bắt đầu (Tiếng Việt). Slide được chia sẻ tại công ty Jupitech.
Đặc biệt là sử dụng git với Unity 3D.
Tác giả không chịu trách nhiệm về mức độ chuẩn xác với các nội dung có trong slide.
Git is a version control system that stores snapshots of files rather than tracking changes between file versions. It allows for offline work and nearly all operations are performed locally. Files can exist in three states - committed, modified, or staged. Commits create snapshots of the staged files. Branches act as pointers to commits, with the default branch being master.
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 pull requests allow for better collaboration and code reviews. Pull requests initiate discussions about proposed code changes by showing exactly what would be merged. Team members can provide feedback and additional commits can be added to address feedback before merging. It is recommended to work on topic branches for new features or bugs rather than directly on the main branch. Pull requests can be automatically built using services like TeamCity to validate tests pass before merging.
The document discusses GitLab, an open source DevOps platform. It provides an overview of GitLab's features including version control, issue tracking, code review, continuous integration/delivery, security tools, and more. Recent landmarks for GitLab include being used by over 100,000 organizations and having over 2,000 contributors. The document promotes GitLab as a one-stop shop that allows development from idea to production.
Git is a version control system for tracking changes to files, while GitLab is a web-based Git repository manager with additional features. The document discusses Git and GitLab workflows including continuous integration, continuous delivery, and continuous deployment using GitLab. It also provides examples of common Git commands like add, commit, push, pull, branch, tag, and undo.
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 provides an overview of Git and its basic commands for beginners. It covers installing Git, creating repositories on Bitbucket and GitHub, tracking changes with commands like add, commit, push, pull, and resolving merge conflicts. It also discusses branching, tagging, reverting changes, and ignoring files. Key concepts explained include distributed version control, staging changes, commit histories, and setting up aliases and submodules.
Github - Git Training Slides: FoundationsLee Hanxue
Slide deck with detailed step breakdown that explains how git works, together with simple examples that you can try out yourself. Slides originated from http://teach.github.com/articles/course-slides/
Author: https://twitter.com/matthewmccull
I have evidence that using git and GitHub for documentation and community doc techniques can give us 300 doc changes in a month. I’ve bet my career on these methods and I want to share with you.
Git 101 - Crash Course in Version Control using GitGeoff Hoffman
Find out why more and more developers are switching to Git - distributed version control. This intro to Git covers the basics, from cloning to pushing for beginners.
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.
This document provides an introduction to the version control system Git. It defines key Git concepts like the working tree, repository, commit, and HEAD. It explains that Git is a distributed version control system where the full history of a project is available once cloned. The document outlines Git's history, with it being created by Linus Torvalds to replace the commercial BitKeeper tool. It then lists and briefly describes important Git commands for local and collaboration repositories, including config, add, commit, log, diff, status, branch, checkout, merge, remote, clone, push, and pull. Lastly, it covers installing Git and generating SSH keys on Windows for accessing Git repositories.
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.
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 provides an overview of GitLab and discusses implementing GitLab within the Commercial Bank of Ethiopia (CBE). It describes GitLab as a self-hosted Git repository management system that allows users to privately manage code repositories. The document outlines key GitLab features like repository creation, user management, access controls, and integration with Git workflows. It recommends a single server GitLab architecture for CBE based on its reference architectures. The proposed CBE implementation would involve deploying a GitLab server authenticated via Active Directory, with an optional GitLab runner server, and various CBE teams using it for source code management, infrastructure as code, and change tracking.
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.
The document discusses Git and GitHub. It describes Git as a distributed version control system that allows multiple computers to work on versions of files simultaneously and merge changes. GitHub is a hosting service for Git repositories that allows for collaboration through features like forking repositories and creating pull requests. The document provides an overview of common Git commands and workflows, such as committing, branching, merging, and pushing changes to a remote repository.
Git-flow is a Git workflow that advocates using separate branches for features, releases, and hotfixes. It uses a master branch for production-ready code and a develop branch as the main branch where features are integrated. Feature branches are created from develop and merged back after completion. Release branches are created from develop for final testing before merging to both master and develop. Hotfix branches are directly created from master to quickly patch production releases. Pull requests are recommended to communicate changes between branches.
This document provides an overview of Git and how to use it. It discusses version control systems and how distributed version control systems like Git work. It explains how Git was created by Linus Torvalds for Linux kernel development and why it gained popularity due to its speed and efficiency. The document then covers Git basics like setup, commits, branches and workflows. It also introduces tools for using Git in Eclipse and GitLab for code hosting and collaboration.
Introduction to Git & GitHub.
Agenda:
- What’s a Version Control System?
- What the heck is Git?
- Some Git commands
- What’s about GitHub?
- Git in Action!
This document provides an introduction to GitHub. It defines Git as a version control system that records changes to files and allows users to revert files to earlier versions. GitHub is described as a hosting service for Git repositories that provides a graphical interface and collaboration features. The document outlines key GitHub concepts like repositories, branches, commits, forking, pull requests and issues. It also summarizes the typical GitHub workflow and includes a link to download GitHub Desktop for a demo.
Git is a version control system created by Linus Torvalds that allows developers to track changes to code. GitHub is a free online repository that hosts Git repositories and allows developers to share code and collaborate on projects remotely. GitHub also allows developers to showcase their work and share their code publicly, potentially helping with job applications by including a GitHub URL. Git uses snapshots of files, adding, committing, and pushing changes to track a project's evolution over time through simple commands like init, add, commit, push, clone, and branch.
This document provides an overview of Git and its basic commands for beginners. It covers installing Git, creating repositories on Bitbucket and GitHub, tracking changes with commands like add, commit, push, pull, and resolving merge conflicts. It also discusses branching, tagging, reverting changes, and ignoring files. Key concepts explained include distributed version control, staging changes, commit histories, and setting up aliases and submodules.
Github - Git Training Slides: FoundationsLee Hanxue
Slide deck with detailed step breakdown that explains how git works, together with simple examples that you can try out yourself. Slides originated from http://teach.github.com/articles/course-slides/
Author: https://twitter.com/matthewmccull
I have evidence that using git and GitHub for documentation and community doc techniques can give us 300 doc changes in a month. I’ve bet my career on these methods and I want to share with you.
Git 101 - Crash Course in Version Control using GitGeoff Hoffman
Find out why more and more developers are switching to Git - distributed version control. This intro to Git covers the basics, from cloning to pushing for beginners.
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.
This document provides an introduction to the version control system Git. It defines key Git concepts like the working tree, repository, commit, and HEAD. It explains that Git is a distributed version control system where the full history of a project is available once cloned. The document outlines Git's history, with it being created by Linus Torvalds to replace the commercial BitKeeper tool. It then lists and briefly describes important Git commands for local and collaboration repositories, including config, add, commit, log, diff, status, branch, checkout, merge, remote, clone, push, and pull. Lastly, it covers installing Git and generating SSH keys on Windows for accessing Git repositories.
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.
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 provides an overview of GitLab and discusses implementing GitLab within the Commercial Bank of Ethiopia (CBE). It describes GitLab as a self-hosted Git repository management system that allows users to privately manage code repositories. The document outlines key GitLab features like repository creation, user management, access controls, and integration with Git workflows. It recommends a single server GitLab architecture for CBE based on its reference architectures. The proposed CBE implementation would involve deploying a GitLab server authenticated via Active Directory, with an optional GitLab runner server, and various CBE teams using it for source code management, infrastructure as code, and change tracking.
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.
The document discusses Git and GitHub. It describes Git as a distributed version control system that allows multiple computers to work on versions of files simultaneously and merge changes. GitHub is a hosting service for Git repositories that allows for collaboration through features like forking repositories and creating pull requests. The document provides an overview of common Git commands and workflows, such as committing, branching, merging, and pushing changes to a remote repository.
Git-flow is a Git workflow that advocates using separate branches for features, releases, and hotfixes. It uses a master branch for production-ready code and a develop branch as the main branch where features are integrated. Feature branches are created from develop and merged back after completion. Release branches are created from develop for final testing before merging to both master and develop. Hotfix branches are directly created from master to quickly patch production releases. Pull requests are recommended to communicate changes between branches.
This document provides an overview of Git and how to use it. It discusses version control systems and how distributed version control systems like Git work. It explains how Git was created by Linus Torvalds for Linux kernel development and why it gained popularity due to its speed and efficiency. The document then covers Git basics like setup, commits, branches and workflows. It also introduces tools for using Git in Eclipse and GitLab for code hosting and collaboration.
Introduction to Git & GitHub.
Agenda:
- What’s a Version Control System?
- What the heck is Git?
- Some Git commands
- What’s about GitHub?
- Git in Action!
This document provides an introduction to GitHub. It defines Git as a version control system that records changes to files and allows users to revert files to earlier versions. GitHub is described as a hosting service for Git repositories that provides a graphical interface and collaboration features. The document outlines key GitHub concepts like repositories, branches, commits, forking, pull requests and issues. It also summarizes the typical GitHub workflow and includes a link to download GitHub Desktop for a demo.
Git is a version control system created by Linus Torvalds that allows developers to track changes to code. GitHub is a free online repository that hosts Git repositories and allows developers to share code and collaborate on projects remotely. GitHub also allows developers to showcase their work and share their code publicly, potentially helping with job applications by including a GitHub URL. Git uses snapshots of files, adding, committing, and pushing changes to track a project's evolution over time through simple commands like init, add, commit, push, clone, and branch.
DevOps là một phương pháp quản lý và phát triển phần mềm nhằm cải thiện việc triển khai phần mềm và dịch vụ bằng cách kết hợp các hoạt động phát triển (Development) và vận hành (Operations). DevOps hướng tới việc cải thiện sự cộng tác, tự động hóa, và chất lượng trong quá trình phát triển phần mềm.
Git có rất nhiều cách sử dụng nên việc ghi nhớ các lệnh khác nhau của nó có thể khá là khó khăn, đó là lý do tại sao mình đã tạo ra "Bảng Cửu Chương Git" này.
https://niithanoi.edu.vn/git-la-gi.html
2. Git???
• Git là 1 hệ thống Distributed revision
control (Distributed version control or
decentralized version control), tạm dịch là
hệ thống quản lý source phân tán.
• By Linus Torvalds
• Chỉ mất 3s để đồng bộ metadata !!!
3. History
• Bắt đầu được phát triển tháng 03/04/2005
• Public 06/04/2005
• Self-hosting vào 07/04/2005
• Lần merge đầu tiên giữa nhiều branch diễn ra
vào 18/04/2005
• Torvals đã đạt được mục tiêu của ông vào
29/04/2005 khi ông thử kiểm với Linux Kernel
trong 6.7s
• Release cùng kernel 2.6.12 vào 16/06/2005
• Release phiên bản 1.0 vào 21/12/2005
4. Spec
• Strong support for non-linear development: hỗ trợ mạnh mẽ phát
triển không tuyến tính (phát triển song song các chức năng)
• Distributed development: Hỗ trợ phát triển và lưu source 1 cách
phân tán giống như Darcs, BitKeeper, Mercurial, SVK, Bazaar and
Monotone. Người dùng sẽ có 1 bản copy trên local và sẽ sử dụng
nó để phát triển, merger branch,...
• Compatibility with existing systems/protocols: thích ứng được
với những hệ thống và giao thức hiện có (HTTP,FTP,rsync,ssh,
plain socket,...)
• Efficient handling of large projects: có khả năng quản lý được
những project lớn, git hoạt động nhanh, mạnh mẽ, hiệu suất cao.
• Cryptographic authentication of history: xác thực history bằng
mật mã.
• Toolkit-based design: git được viết bằng C để nâng cao tốc độ
thực thi.
• Pluggable merge strategies: git có 1 model để meger không toàn
vẹn và cũng hỗ trợ rất nhiều thuật toán để hoàn thiện quá trình
merge, chỉ với trường hợp ko thể meger được thì mới cần người
dùng phải tiến hành merge bằng tay.
8. Git sv SVN
● GIT is distributed, SVN is not
● GIT stores content as metadata,
SVN stores just files
● GIT branches are not the same
as SVN branches
● GIT’s content integrity is better
than SVN’s: SHA-1
11. Main branch
• branch sẽ tồn tại mãi mãi và
song song
– master: ứng với phiên bản
thực tế của product
– develop: ứng với phiên bản
cuối cùng sẵn sàng để release
lên phiên bản thực tế
12. Supporting branches
• Feature branches
– branch off từ : develop
– merge vào: develop
– Quy luật đặt tên: bất kể j trừ master, develop,
release-, hay hotfix-
• Release branches
– Được branch off từ:develop
– Được merge vào develop và master.
– Quy tắc đặt tên: release-*
13. Supporting branches
• Hotfix branches
– Branch off from: master
– được merge vào:develop and master
– Quy tắc đặt tên:hotfix-*
15. Gitlab
● Open source
● Git repository management, code reviews,
issue tracking, activity feeds, wikis and
continuous integration
● 25,000 users on one server or a highly
available active/active cluster