SilentStorm的个人博客分享 http://blog.sciencenet.cn/u/SilentStorm

博文

从command line 新建repository并上传至GitHub

已有 1854 次阅读 2019-2-23 23:18 |个人分类:计算机|系统分类:科研笔记| git, github

1.在GitHub建立一个新的repository,如ffrtsimulation

2.在~/.ssh/下生成一对key   rsd和rsd.pub,并将rsd.pub拷贝到GitHub中

3.执行如下命令:


git init

git add *.c

git commit -m "first commit"

git remote add origin git@github.com:YanqingHou/ffrtsimulation.git

git push -u origin master




https://blog.sciencenet.cn/blog-2958868-1163837.html

上一篇:在matlab中使用c语言函数
下一篇:替换多个文件中的字符串
收藏 IP: 27.225.165.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-23 23:44

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部