牛客项目悄然上线,分享你的项目送牛客T恤、马克杯!
第一版牛客项目上线啦,可以支持Git代码的提交,欢迎参与内测~
现在上传项目并分享给大家,还有机会获得惊喜好礼!
分享项目赢好礼
▶ 活动规则:
- 活动期间内,在牛客上传你的项目(项目可以是你实习/实验室的项目,也可以是你的大作业/期末考试/毕设哦~)
- 将你上传到牛客网的项目链接分享到本帖下
- 活动期间内,前5名参与活动且符合活动要求的牛友,将获赠牛客T恤or牛客马克杯(自选其中任意一个礼物~)
- 将于8月1日抽出除前五名参与活动之外的20位幸运牛友,赠送牛客T恤or牛客马克杯(自选其中任意一个礼物~)!
▶ 活动时间:
- 即日起 至 2018年8月1日 00:00
▶ 特别提醒:
- 回复的链接请一定是牛客的项目链接,不能是Git等其他网站的项目链接~
- 请注意将你的项目设置为公开项目哦~
- 活动结束前,不得删除/私有你参与活动的项目~
如何创建项目
▶ Step1
打开你的主页,点击左侧的项目,设置好邮箱和密码(这是Git提交的独立账户和密码)
▶ Step2
再通过项目-新建项目,新建完项目以后再在本地提交项目到牛客就行啦。
如何通过命令行提交到牛客项目库呢?
很简单的如下操作
(注意一下 https://git.nowcoder.com/77/nowcoder.git 要替换成你项目地址)
再执行最后一步git push的时候输入在个人主页设置的邮箱和密码就行啦~~
本地已有项目目录,未关联Git仓库:
cd existing_folder git init git remote add origin https://git.nowcoder.com/77/nowcoder.git git add . git commit -m "Initial commit" git push -u origin master
已有Git仓库目录:
cd existing_repo git remote rename origin old-origin git remote add origin https://git.nowcoder.com/77/nowcoder.git git push -u origin --all git push -u origin --tags
从GitHub搬运到牛客:
git clone https://github.com/jfinal/jfinal.git cd jfinal git remote rename origin old-origin git remote add origin https://git.nowcoder.com/77/nowcoder.git git push -u origin --all git push -u origin --tags
