首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

在github上创造项目

2013-04-02 
在github上创建项目git# 分支的创建和合并# git branch yourbranch # git checkout yourbranch切换到yourb

在github上创建项目
git

# 分支的创建和合并
# git branch yourbranch
# git checkout yourbranch    切换到yourbranch

# 开发yourbranch分支,然后开发之后与master分支合并

# git checkout master
# git merge yourbranch
# git branch -d yourbranch    合并完后删除本地分支在此描述您的新便笺。

为版本库添加名为origin的远程版本库。

$ git remote add origin git@github.com:gotgithub/helloworld.git
执行推送命令,完成GitHub版本库的初始化。注意命令行中的-u参数,在推送成功后自动建立本地分支与远程版本库分支的追踪。

$ git push -u origin master

热点排行