Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

第 9 章 Miscellaneous

目錄

9.1. 代碼託管
9.1.1. sourceforge.net
9.1.1.1. http://netkiller.users.sourceforge.net/ 頁面
9.1.2. Google Code
9.1.3. GitHub
9.1.3.1. 首次操作
9.1.3.2. clone 已經存在的倉庫
9.2. GUI
9.2.1. TortoiseSVN
9.2.2. TortoiseGit
9.3. Browser interface for CVS and SVN version control repositories

9.1. 代碼託管

9.1.1. sourceforge.net

9.1.1.1. http://netkiller.users.sourceforge.net/ 頁面

使用 sftp命令連接netkiller@frs.sourceforge.net,然後切換目錄cd userweb/htdocs/,上傳頁面檔案 put index.html,sourceforge.net 支持php

			
$ sftp netkiller@frs.sourceforge.net
netkiller@frs.sourceforge.net's password:
Connected to frs.sourceforge.net.
sftp> ls -l
lrwxrwxrwx    1 root     root           28 Apr 26  2012 userweb
sftp> cd userweb/htdocs/
sftp> put /tmp/index.html
Uploading /tmp/index.html to /home/user-web/n/ne/netkiller/htdocs/index.html
/tmp/index.html                     100%   10     0.0KB/s   00:00
sftp> put /tmp/index.php
Uploading /tmp/index.php to /home/user-web/n/ne/netkiller/htdocs/index.php
/tmp/index.php                      100%   17     0.0KB/s   00:00
sftp> pwd
Remote working directory: /home/user-web/n/ne/netkiller/htdocs
sftp> ls
index.html  index.php
sftp> exit
			
			

將上面netkiller改為你註冊的用戶名即可

幫助: https://sourceforge.net/apps/trac/sourceforge/wiki/Developer%20web

9.1.2. Google Code

9.1.3. GitHub

http://www.github.com/

9.1.3.1. 首次操作

Global setup:

Download and install Git

git config --global user.name "Neo Chan"
git config --global user.email bg7nyt@gmail.com
	 		

Next steps:

mkdir neo
cd neo
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:netkiller/neo.git
git push origin master
		  	

Existing Git Repo?

cd existing_git_repo
git remote add origin git@github.com:netkiller/neo.git
git push origin master
  			

9.1.3.2. clone 已經存在的倉庫

$ git clone https://github.com/netkiller/netkiller.github.com.git

git config --global user.name "Your Name"
git config --global user.email you@example.com
git commit --amend --reset-author