第 8 章 Miscellaneous

本文介绍了几种常见的代码托管平台,包括SourceForge.net、Google Code 和 GitHub 的使用方法。详细讲解了如何通过 sftp 命令在 SourceForge.net 上部署页面文件,以及在 GitHub 上创建和推送 Git 仓库的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

目录

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 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值