SlideShare a Scribd company logo
github.com/
pythonvietnam/
xxx
localhost
github.com/
ducnc/xxx
fork
pull
clone
push
git remote
git fetch
git merge
git add
git commit
Khởi tạo
#Clone một repo
git clone https://github.com/pythonvietnam/
openstack
#Tạo mới một repo
git init
Local Changes
#Kiểm tra các file thay đổi trong thư mục làm việc
git status
#Add lần lượt các file
git add file1 file2 file3
#Add tất cả các file
git add .
git commit -m “comment”
#Commit tất cả các file
git commit -a -m “comment”
#Hiển thị tất cả các commit
git log
Update and publish
#Danh sách các remote link
git remote -v
#Thêm một remote link
git remote add <name> <url>
#Tải về từ <remote> nhưng không ghi vào HEAD
git fetch <remote>
#Tải về từ <remote> và tự động merge vào HEAD
git pull <remote>
#Publish lên <branch> tại <remote>
git push <remote> <branch>
Branch
#Chuyển sang <branch> khác
git checkout <branch>
#Tạo và chuyển sang một <branch> mới
git checkout -b <new_branch>
git brach <new_brach>
#Trộn <branch> vào brach hiện tại
git merge <branch>
Ad

More Related Content

Viewers also liked (20)

Python Beginner Class day-07-08-module
Python Beginner Class day-07-08-modulePython Beginner Class day-07-08-module
Python Beginner Class day-07-08-module
Khánh Nguyễn
 
Python Beginner Class day-11-12-13-database
Python Beginner Class day-11-12-13-databasePython Beginner Class day-11-12-13-database
Python Beginner Class day-11-12-13-database
Khánh Nguyễn
 
Python Beginner Class day-15-networking
Python Beginner Class day-15-networkingPython Beginner Class day-15-networking
Python Beginner Class day-15-networking
Khánh Nguyễn
 
Python Beginner Class day-14-thread
Python Beginner Class day-14-threadPython Beginner Class day-14-thread
Python Beginner Class day-14-thread
Khánh Nguyễn
 
Bottle web framwork for python
Bottle web framwork for pythonBottle web framwork for python
Bottle web framwork for python
Khánh Nguyễn
 
Introduction to WEB HTML, CSS
Introduction to WEB HTML, CSSIntroduction to WEB HTML, CSS
Introduction to WEB HTML, CSS
University of Technology
 
Một góc nhìn về chuyện khởi nghiệp của Sinh Viên Việt Nam
Một góc nhìn về chuyện khởi nghiệp của Sinh Viên Việt NamMột góc nhìn về chuyện khởi nghiệp của Sinh Viên Việt Nam
Một góc nhìn về chuyện khởi nghiệp của Sinh Viên Việt Nam
Imr Hung
 
Training android
Training androidTraining android
Training android
University of Technology
 
Software Development Process Seminar at HUI
Software Development Process Seminar at HUISoftware Development Process Seminar at HUI
Software Development Process Seminar at HUI
KMS Technology
 
Training Google Drive and Hangouts.pptx
Training Google Drive and Hangouts.pptxTraining Google Drive and Hangouts.pptx
Training Google Drive and Hangouts.pptx
University of Technology
 
Python Beginner Class day-09-fileio
Python Beginner Class day-09-fileioPython Beginner Class day-09-fileio
Python Beginner Class day-09-fileio
Khánh Nguyễn
 
Python Beginner Class day-10-class
Python Beginner Class day-10-classPython Beginner Class day-10-class
Python Beginner Class day-10-class
Khánh Nguyễn
 
An Introduction of Apache Hadoop
An Introduction of Apache HadoopAn Introduction of Apache Hadoop
An Introduction of Apache Hadoop
KMS Technology
 
Training javascript 2012 hcmut
Training javascript 2012 hcmutTraining javascript 2012 hcmut
Training javascript 2012 hcmut
University of Technology
 
Design patterns tutorials
Design patterns tutorialsDesign patterns tutorials
Design patterns tutorials
University of Technology
 
Training python (new Updated)
Training python (new Updated)Training python (new Updated)
Training python (new Updated)
University of Technology
 
Am hoc kien truc
Am hoc kien trucAm hoc kien truc
Am hoc kien truc
Dang Lam
 
Python Beginner Class day-02-strings
Python Beginner Class day-02-stringsPython Beginner Class day-02-strings
Python Beginner Class day-02-strings
Khánh Nguyễn
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
KMS Technology
 
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
KMS Technology
 
Python Beginner Class day-07-08-module
Python Beginner Class day-07-08-modulePython Beginner Class day-07-08-module
Python Beginner Class day-07-08-module
Khánh Nguyễn
 
Python Beginner Class day-11-12-13-database
Python Beginner Class day-11-12-13-databasePython Beginner Class day-11-12-13-database
Python Beginner Class day-11-12-13-database
Khánh Nguyễn
 
Python Beginner Class day-15-networking
Python Beginner Class day-15-networkingPython Beginner Class day-15-networking
Python Beginner Class day-15-networking
Khánh Nguyễn
 
Python Beginner Class day-14-thread
Python Beginner Class day-14-threadPython Beginner Class day-14-thread
Python Beginner Class day-14-thread
Khánh Nguyễn
 
Bottle web framwork for python
Bottle web framwork for pythonBottle web framwork for python
Bottle web framwork for python
Khánh Nguyễn
 
Một góc nhìn về chuyện khởi nghiệp của Sinh Viên Việt Nam
Một góc nhìn về chuyện khởi nghiệp của Sinh Viên Việt NamMột góc nhìn về chuyện khởi nghiệp của Sinh Viên Việt Nam
Một góc nhìn về chuyện khởi nghiệp của Sinh Viên Việt Nam
Imr Hung
 
Software Development Process Seminar at HUI
Software Development Process Seminar at HUISoftware Development Process Seminar at HUI
Software Development Process Seminar at HUI
KMS Technology
 
Python Beginner Class day-09-fileio
Python Beginner Class day-09-fileioPython Beginner Class day-09-fileio
Python Beginner Class day-09-fileio
Khánh Nguyễn
 
Python Beginner Class day-10-class
Python Beginner Class day-10-classPython Beginner Class day-10-class
Python Beginner Class day-10-class
Khánh Nguyễn
 
An Introduction of Apache Hadoop
An Introduction of Apache HadoopAn Introduction of Apache Hadoop
An Introduction of Apache Hadoop
KMS Technology
 
Am hoc kien truc
Am hoc kien trucAm hoc kien truc
Am hoc kien truc
Dang Lam
 
Python Beginner Class day-02-strings
Python Beginner Class day-02-stringsPython Beginner Class day-02-strings
Python Beginner Class day-02-strings
Khánh Nguyễn
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
KMS Technology
 
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
KMS Technology
 

Similar to Git Using - pythonvietnam.info (10)

Git Instruction.docx
Git Instruction.docxGit Instruction.docx
Git Instruction.docx
TrongNguyn1
 
Git Instruction.pdf
Git Instruction.pdfGit Instruction.pdf
Git Instruction.pdf
TrongNguyn1
 
Bang Cuu Chuong Git | NIIT
Bang Cuu Chuong Git | NIITBang Cuu Chuong Git | NIIT
Bang Cuu Chuong Git | NIIT
NIIT - ICT Hà Nội
 
Guilde GIT.pptx
Guilde GIT.pptxGuilde GIT.pptx
Guilde GIT.pptx
ssuser0b8037
 
using github and gitlan. Cách sử dụng git
using github and gitlan. Cách sử dụng gitusing github and gitlan. Cách sử dụng git
using github and gitlan. Cách sử dụng git
NguynQucLong4
 
Git Basic
Git BasicGit Basic
Git Basic
Nguyen Thieu
 
Tranning git
Tranning gitTranning git
Tranning git
Cương Hỏa
 
Tranning git
Tranning gitTranning git
Tranning git
Cương Hỏa
 
Git tutorial căn bản - Codeto Vietnam
Git tutorial căn bản - Codeto VietnamGit tutorial căn bản - Codeto Vietnam
Git tutorial căn bản - Codeto Vietnam
Hà Anh Sơn
 
02_BAI 2 HUONG DAN ROS2 aaaaaaaaaaaaaaaaaaaaaaaaaa
02_BAI 2 HUONG DAN ROS2 aaaaaaaaaaaaaaaaaaaaaaaaaa02_BAI 2 HUONG DAN ROS2 aaaaaaaaaaaaaaaaaaaaaaaaaa
02_BAI 2 HUONG DAN ROS2 aaaaaaaaaaaaaaaaaaaaaaaaaa
captainmeep06
 
Git Instruction.docx
Git Instruction.docxGit Instruction.docx
Git Instruction.docx
TrongNguyn1
 
Git Instruction.pdf
Git Instruction.pdfGit Instruction.pdf
Git Instruction.pdf
TrongNguyn1
 
using github and gitlan. Cách sử dụng git
using github and gitlan. Cách sử dụng gitusing github and gitlan. Cách sử dụng git
using github and gitlan. Cách sử dụng git
NguynQucLong4
 
Git tutorial căn bản - Codeto Vietnam
Git tutorial căn bản - Codeto VietnamGit tutorial căn bản - Codeto Vietnam
Git tutorial căn bản - Codeto Vietnam
Hà Anh Sơn
 
02_BAI 2 HUONG DAN ROS2 aaaaaaaaaaaaaaaaaaaaaaaaaa
02_BAI 2 HUONG DAN ROS2 aaaaaaaaaaaaaaaaaaaaaaaaaa02_BAI 2 HUONG DAN ROS2 aaaaaaaaaaaaaaaaaaaaaaaaaa
02_BAI 2 HUONG DAN ROS2 aaaaaaaaaaaaaaaaaaaaaaaaaa
captainmeep06
 
Ad

Git Using - pythonvietnam.info

  • 1. github.com/ pythonvietnam/ xxx localhost github.com/ ducnc/xxx fork pull clone push git remote git fetch git merge git add git commit Khởi tạo #Clone một repo git clone https://github.com/pythonvietnam/ openstack #Tạo mới một repo git init Local Changes #Kiểm tra các file thay đổi trong thư mục làm việc git status #Add lần lượt các file git add file1 file2 file3 #Add tất cả các file git add . git commit -m “comment” #Commit tất cả các file git commit -a -m “comment” #Hiển thị tất cả các commit git log Update and publish #Danh sách các remote link git remote -v #Thêm một remote link git remote add <name> <url> #Tải về từ <remote> nhưng không ghi vào HEAD git fetch <remote> #Tải về từ <remote> và tự động merge vào HEAD git pull <remote> #Publish lên <branch> tại <remote> git push <remote> <branch> Branch #Chuyển sang <branch> khác git checkout <branch> #Tạo và chuyển sang một <branch> mới git checkout -b <new_branch> git brach <new_brach> #Trộn <branch> vào brach hiện tại git merge <branch>