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.
Two days git training with labs
First day covers git basis and essential commands
Second day covers git additional command with a big lab using a git workflow
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.
Two days git training with labs
First day covers git basis and essential commands
Second day covers git additional command with a big lab using a git workflow
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!
Do you know the basics of Git but wonder what all the hype is about? Do you want the ultimate control over your Git history? This tutorial will walk you through the basics of committing changes before diving into the more advanced and "dangerous" Git commands.
Git is an open source, distributed version control system used to track many different projects. You can use it to manage anything from a personal notes directory to a multi-programmer project.
This tutorial provides a short walk through of basic git commands and the Git philosophy to project management. Then we’ll dive into an exploration of the more advanced and “dangerous” Git commands. Watch as we rewrite our repository history, track bugs down to a specific commit, and untangle commits into an LKML-worthy patchset.
A Basic Git intro presentation for SVN long timers doing their first steps in Git.
This presentation is meant to clear up most of the basic concepts which cause confusion with developers using Git as if it was an SVN.
This slide discusses the most popular distributed version control system that is GIT and it's different commands that we need in our daily operations for project 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!
Do you know the basics of Git but wonder what all the hype is about? Do you want the ultimate control over your Git history? This tutorial will walk you through the basics of committing changes before diving into the more advanced and "dangerous" Git commands.
Git is an open source, distributed version control system used to track many different projects. You can use it to manage anything from a personal notes directory to a multi-programmer project.
This tutorial provides a short walk through of basic git commands and the Git philosophy to project management. Then we’ll dive into an exploration of the more advanced and “dangerous” Git commands. Watch as we rewrite our repository history, track bugs down to a specific commit, and untangle commits into an LKML-worthy patchset.
A Basic Git intro presentation for SVN long timers doing their first steps in Git.
This presentation is meant to clear up most of the basic concepts which cause confusion with developers using Git as if it was an SVN.
This slide discusses the most popular distributed version control system that is GIT and it's different commands that we need in our daily operations for project collaboration.
1. Seminar team iOS
Giới thiệu Git
và một số tính năng cơ bản
Người thực hiện:
Nguyễn Đức Hà
2. Sơ lược về quản lý phiên bản và Git
• Khái niệm Git: là một hệ thống quản lý phiên
bản phân tán.
• Cách lưu trữ dữ liệu:
3. Sơ lược về quản lý phiên bản và Git
• Cách tổ chức dữ liệu:
4. Làm việc với Git
• Khởi tạo
– Khởi tạo từ thư mục trống:
Git init
– Khởi tạo từ repository có sẵn:
Git clone [url] [folder name]
5. Làm việc với Git
• Lưu trữ: vòng đời của tập tin trong Git
6. Làm việc với Git
• Phục hồi dữ liệu:
Lệnh Đối tượng tác động Ý nghĩa
Git reset Commit - level Xóa các commit ở
nhánh riêng tư hoặc
phục hồi thay đổi chưa
commit
Git reset File - level Loại bỏ tập tin khỏi
khu vực staging area
Git checkout Commit - level Chuyển nhánh
Git checkout File - level Phục hồi thay đổi của
tập tin trong working
directory
Git revert Commit - level Phục hồi commit ở
nhánh công khai
7. Làm việc với Git
• Gitignore: là một tập tin có tên .gitignore
• Liệt kê tên các tập tin hoặc các mẫu tên tập tin
mà Git sẽ bỏ qua.
• Sử dụng regular expression để tìm các tập tin
theo mẫu tên.
8. Nhánh trong Git
• Khái niệm nhánh: nhánh là một con trỏ có khả
năng di chuyển được, trỏ đến một trong
những commit của repository.
• Nhánh mặc định có tên là master
• Người dùng có thể thêm nhánh mới, con trỏ
mới sẽ được tạo ra, trỏ vào commit hiện tại.
11. Nhánh trong Git
Quản lý nhánh
• Tạo nhánh mới:
Git branch [branch name]
• Chuyển sang nhánh đã có
Git checkout [branch name]
• Xóa nhánh:
Git branch -d [branch name]
• Tạo nhánh mới đồng thời chuyển nhánh:
Git checkout –b [branch name]
12. Nhánh trong Git
• Lưu trữ tạm thời trong Git:
Git stash
• Khôi phục dữ liệu được lưu tạm thời
Git stash apply
Hoặc:
Git stash pop
13. Nhánh trong Git
Tích hợp
• Merge:
Git checkout [destination branch]
Git merge [source branch]
Hoặc:
Git merge [destination branch] [source
branch]
20. Submodules
• Submodules được sử dụng khi cần sử dụng
một dự án khác trong dự án đang làm việc.
• Thêm 1 submodule:
• Git submodule add [url]
21. Submodules
• Sao chép một dự án đã có Submodules:
– Sao chép dự án sử dụng lệnh git clone
– Truy cập vào thư mục submodule của dự án.
– Khởi tạo tập tin cấu hình submodule sử dụng lệnh
“git submodule init”
– Lấy toàn bộ dữ liệu của submodule về sử dụng
lệnh “git submodule update”
22. Tổng kết
Các ích lợi khi sử dụng Git:
- Vẫn có thể làm việc, commit khi không kết nối
internet.
- Thời gian trễ thấp do hầu hết dữ liệu đều
được sao chép ở máy cục bộ.
- Làm việc với nhánh dễ dàng hơn.