Google code cũng như 1 hosting bình thường và nó dùng để chứa tài liệu rất hiệu quả.Ngoài ra, khi làm việc nhóm với 1 project nào đó sẽ không tránh khỏi việc chỉnh sửa project giữa các thành viên trong nhóm vì thế Google code là nời sẽ giúp chúng ta có thể kiểm soát được quá trình làm việc trên một cách chuẩn xác... Ngoài ra bạn có thể tận dụng google code để lưu trử các file js,css,... phục vụ cho trang blog hay web của bạn. Bài viết này mình sẽ giới thiệu cho các bạn các bước thiết lập để bạn có thể upload code của mình lên googlecode.
Bước 1: Bạn vào trang code.google.com, chọn Create a new project để tạo 1 project mới

Bước 2: Điền đầy đủ thông tin rồi chọn Create Project để tạo project. Chú ý là mục Version Control System phải chọn là Subversion

Bước 3: Sau khi trang quản lý project, bạn chọn thẻ Source. Đường dẫn http://dttestblog.googlecode.com/svn/trunk (dttestblog là tên project) mà bạn nhìn thấy sẽ là đường dẫn tới các file code bạn up lên sau này. Bạn chọn vào liên kết googlecode.com password để lấy password mà google cung cấp cho bạn

Bước 4: Lưu lại password này và tốt nhất là không nên chia sẽ password này cho cho ai

Bước 5: Download chương trình TortosieSVN tại địa chỉ http://tortoisesvn.net/downloads.html và cài đặt vào máy
Bước 6: Bạn tạo ra 1 thư mục để lưu tất cả các file code mà bạn muốn up lên google. Ví dụ mình chọn thư mục D:\Data\Google Code là thư mục lưu file

Bước 7: Chuột phải vào thư mục bạn vừa tạo ở trên, chọn SVN Checkout và thiết lập các thông số tương tự như hình (trong đó dttestblog sẽ thay bằng tên project mà bạn đã tạo, Checkout Directory chính là thư mục mà bạn đã tạo ở Bước 6)
Bước 8: Chuột phải vào thư mục lưu code chọn TortosieSVN - Settings. Hộp thoại Settings hiện ra thì chọn General rồi chọn Edit vào chọn đoạn mã dưới đây để thay thế cho đoạn mã có sẳn trong file cofig
[miscellany] enable-auto-props = yes [auto-props] # Scriptish formats *.bat = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain *.bsh = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-beanshell *.cgi = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain *.cmd = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain *.js = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/javascript *.php = svn:eol-style=native; svn:keywords=Id Rev Date; svn:mime-type=text/x-php *.pl = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-perl; svn:executable *.pm = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-perl *.py = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-python; svn:executable *.sh = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-sh; svn:executable # Image formats *.bmp = svn:mime-type=image/bmp *.gif = svn:mime-type=image/gif *.ico = svn:mime-type=image/ico *.jpeg = svn:mime-type=image/jpeg *.jpg = svn:mime-type=image/jpeg *.png = svn:mime-type=image/png *.tif = svn:mime-type=image/tiff *.tiff = svn:mime-type=image/tiff # Data formats *.pdf = svn:mime-type=application/pdf *.avi = svn:mime-type=video/avi *.doc = svn:mime-type=application/msword *.eps = svn:mime-type=application/postscript *.gz = svn:mime-type=application/gzip *.mov = svn:mime-type=video/quicktime *.mp3 = svn:mime-type=audio/mpeg *.ppt = svn:mime-type=application/vnd.ms-powerpoint *.ps = svn:mime-type=application/postscript *.psd = svn:mime-type=application/photoshop *.rtf = svn:mime-type=text/rtf *.swf = svn:mime-type=application/x-shockwave-flash *.tgz = svn:mime-type=application/gzip *.wav = svn:mime-type=audio/wav *.xls = svn:mime-type=application/vnd.ms-excel *.zip = svn:mime-type=application/zip # Text formats .htaccess = svn:mime-type=text/plain *.css = svn:mime-type=text/css *.dtd = svn:mime-type=text/xml *.html = svn:mime-type=text/html *.ini = svn:mime-type=text/plain *.sql = svn:mime-type=text/x-sql *.txt = svn:mime-type=text/plain *.xhtml = svn:mime-type=text/xhtml+xml *.xml = svn:mime-type=text/xml *.xsd = svn:mime-type=text/xml *.xsl = svn:mime-type=text/xml *.xslt = svn:mime-type=text/xml *.xul = svn:mime-type=text/xul *.yml = svn:mime-type=text/plain CHANGES = svn:mime-type=text/plain COPYING = svn:mime-type=text/plain INSTALL = svn:mime-type=text/plain Makefile* = svn:mime-type=text/plain README = svn:mime-type=text/plain TODO = svn:mime-type=text/plain # Code formats *.c = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain *.cpp = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain *.h = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain *.java = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain *.as = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain *.mxml = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
Bây giờ bạn có thể upload code của bạn lên google code rồi đấy. Khi upload lần đầu thì TortosieSVN bắt bạn cũng username và password. Username chính là google username của bạn còn password chính là password của project mà mình nói các bạn lưu ở Bước 3. Bạn chú ý là cấu trúc của thư mục trunk trên googlecode sẽ giống như cấu trúc của thư mục mà bạn lưu code.
Có cần phải thay thế đoạn code ở file config không? Giả sử mới lần đầu sử dụng TortoseSVN để upload code thì đều phải làm theo như bước 8 hả?
ReplyDeletetìm cách làm lâu rồi, giờ đã thấy! thanks ad snhiều
ReplyDelete-----------------------------------------------------
" Đầu thu kỹ thuật số mặt đất tại Kingtek - Xem miễn phí hoàn toàn đến hơn 60 kênh truyền hình chuẩn HD của VTV, VTC, HTV, Let's Viet, LA34, không bị ảnh hưởng tín hiệu do mưa bão, cho chất lượng hình ảnh và âm thanh sống động đến kinh ngạc.
Liên hệ: 0909 480 368 – 08 7303 1368 để biết thêm chi tiết.
Công ty TNHH Thương mại và Dịch vụ Kingtek
63 Nguyễn Thái Bình, phường 4, quận Tân Bình.
Xem thêm:
Thiết bị thu phát sóng truyền hình mặt đất
Danh sách các kênh thu được từ đầu thu kỹ thuật số
Anten chuyên dụng dùng cho đầu thu DVB T2"