SlideShare a Scribd company logo
1 of 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>

More Related Content

Viewers also liked

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-moduleKhá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-databaseKhá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-networkingKhá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-threadKhánh Nguyễn
 
Bottle web framwork for python
Bottle web framwork for pythonBottle web framwork for python
Bottle web framwork for pythonKhá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 NamImr Hung
 
Software Development Process Seminar at HUI
Software Development Process Seminar at HUISoftware Development Process Seminar at HUI
Software Development Process Seminar at HUIKMS Technology
 
Python Beginner Class day-09-fileio
Python Beginner Class day-09-fileioPython Beginner Class day-09-fileio
Python Beginner Class day-09-fileioKhá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-classKhánh Nguyễn
 
An Introduction of Apache Hadoop
An Introduction of Apache HadoopAn Introduction of Apache Hadoop
An Introduction of Apache HadoopKMS Technology
 
Am hoc kien truc
Am hoc kien trucAm hoc kien truc
Am hoc kien trucDang Lam
 
Python Beginner Class day-02-strings
Python Beginner Class day-02-stringsPython Beginner Class day-02-strings
Python Beginner Class day-02-stringsKhánh Nguyễn
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control SystemKMS 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 DevOpsKMS Technology
 

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
 
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
 
Python Beginner Class day-15-networking
Python Beginner Class day-15-networkingPython Beginner Class day-15-networking
Python Beginner Class day-15-networking
 
Python Beginner Class day-14-thread
Python Beginner Class day-14-threadPython Beginner Class day-14-thread
Python Beginner Class day-14-thread
 
Bottle web framwork for python
Bottle web framwork for pythonBottle web framwork for python
Bottle web framwork for python
 
Introduction to WEB HTML, CSS
Introduction to WEB HTML, CSSIntroduction to WEB HTML, CSS
Introduction to WEB HTML, CSS
 
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
 
Training android
Training androidTraining android
Training android
 
Software Development Process Seminar at HUI
Software Development Process Seminar at HUISoftware Development Process Seminar at HUI
Software Development Process Seminar at HUI
 
Training Google Drive and Hangouts.pptx
Training Google Drive and Hangouts.pptxTraining Google Drive and Hangouts.pptx
Training Google Drive and Hangouts.pptx
 
Python Beginner Class day-09-fileio
Python Beginner Class day-09-fileioPython Beginner Class day-09-fileio
Python Beginner Class day-09-fileio
 
Python Beginner Class day-10-class
Python Beginner Class day-10-classPython Beginner Class day-10-class
Python Beginner Class day-10-class
 
An Introduction of Apache Hadoop
An Introduction of Apache HadoopAn Introduction of Apache Hadoop
An Introduction of Apache Hadoop
 
Training javascript 2012 hcmut
Training javascript 2012 hcmutTraining javascript 2012 hcmut
Training javascript 2012 hcmut
 
Design patterns tutorials
Design patterns tutorialsDesign patterns tutorials
Design patterns tutorials
 
Training python (new Updated)
Training python (new Updated)Training python (new Updated)
Training python (new Updated)
 
Am hoc kien truc
Am hoc kien trucAm hoc kien truc
Am hoc kien truc
 
Python Beginner Class day-02-strings
Python Beginner Class day-02-stringsPython Beginner Class day-02-strings
Python Beginner Class day-02-strings
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
 
[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
 

Similar to Git Using - pythonvietnam.info

Similar to Git Using - pythonvietnam.info (8)

Git Instruction.docx
Git Instruction.docxGit Instruction.docx
Git Instruction.docx
 
Git Instruction.pdf
Git Instruction.pdfGit Instruction.pdf
Git Instruction.pdf
 
Bang Cuu Chuong Git | NIIT
Bang Cuu Chuong Git | NIITBang Cuu Chuong Git | NIIT
Bang Cuu Chuong Git | NIIT
 
Guilde GIT.pptx
Guilde GIT.pptxGuilde GIT.pptx
Guilde GIT.pptx
 
Git Basic
Git BasicGit Basic
Git Basic
 
Tranning git
Tranning gitTranning git
Tranning git
 
Tranning git
Tranning gitTranning git
Tranning git
 
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
 

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>