第 8 章 Miscellaneous

简介:

目录

8.1. 代码托管
8.1.1. sourceforge.net
8.1.1.1. http://netkiller.users.sourceforge.net/ 页面
8.1.2. Google Code
8.1.3. GitHub
8.1.3.1. 首次操作
8.1.3.2. clone 已经存在的仓库
8.2. GUI
8.2.1. TortoiseSVN
8.2.2. TortoiseGit
8.3. Browser interface for CVS and SVN version control repositories

8.1. 代码托管

8.1.1. sourceforge.net

8.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

8.1.2. Google Code

8.1.3. GitHub

http://www.github.com/

8.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
  			

8.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
  			





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
Java API
解决办法:access restriction is not accessible due to restriction
解决办法:access restriction is not accessible due to restriction
100 0
strange behavior:why u31000 is accessed for Extension project
Created by Wang, Jerry, last modified on May 20, 2015
92 0
strange behavior:why u31000 is accessed for Extension project
|
关系型数据库 MySQL
|
关系型数据库 MySQL
|
JSON 数据格式
|
JSON 数据格式
|
JavaScript 内存技术 前端开发

热门文章

最新文章