Github上传自己的工程
1.注册并新建项目

2.配置github for windows
前题:安装相应的github for windows
2.1 获取密钥
可以用命令的模式(Git bash),参考资料中有相应的用法;在这里我用图形来获取(Git GUI)。
在help>show ssh key>点击generate key


在网页,自己的设置中
添加上面的密钥,如下图

再在Git Bash输入命令查看是否成功

2.2 配置信息
git config --global user.name "自己的用户名"
git config --global user.email "自己的邮箱"
2.3 上传文件
可以先克隆仓库。(git clone 工程网址)
我选择另外一种方式。
首先在git在本地创建一个相同的项目;
git init //初始化
touch README.md
git add README.md //更新README文件
git commit -m '1st_commit'
git remote add origin git@github.com:你的用户名/工程名.git //连接远程github项目
git push -u origin master //将本地项目更新到github项目上去
出现的问题:
1).
git remote add origin git@github.com:defnngj/Data_Structure.git //连接远程github项目
出现:
fatal: remote origin already exists.
git remote rm origin
2).
git push -u origin master //将本地项目更新到github项目上去
出现:
error:failed to push som refs to
git pull origin master
3).
git push -u origin master

方案:
git pull --rebase origin master

4)

查看

添加
git add <file>...
参考资料:
http://www.cnblogs.com/fnng/archive/2011/08/25/2153807.html
http://www.cnblogs.com/findingsea/archive/2012/08/27/2654549.html
http://jingyan.baidu.com/article/f7ff0bfc7181492e27bb1360.html
http://blog.csdn.net/samhacker/article/details/20129213
Github上传自己的工程的更多相关文章
- 【iOS 使用github上传代码】详解
[iOS 使用github上传代码]详解 一.github创建新工程 二.直接添加文件 三.通过https 和 SSH 操作两种方式上传工程 3.1https 和 SSH 的区别: 3.1.1.前者可 ...
- 往github上传demo
一直在github上寻找demo,但怎么传demo上githun呢? http://www.2cto.com/kf/201504/390397.html 首先在github上 new一个reposit ...
- Github上传更新
通过2天的时间,不停的网上找各种资料,今天下午终于可以登录上github for Windows 客户端了,,, 然后通过一整晚的摸索,也把项目上传到github里. github地址:https:/ ...
- 第一次往github上传文件步骤
第一次往github上传文件步骤: 1> 从右上角 '+' 位置下拉菜单中,创建一个repository 2>从右上角头像位置下拉菜单 setting中设置 SSH keys 3>打 ...
- github上传本地项目
github上传本地项目,分为两个部分: 1.如果建立了ssh key的,直接看第二部分的上传部分就行了 2.如果没有建立ssh key的,就从头开始看吧 ——————————————————我是快乐 ...
- Github上传代码菜鸟超详细教程【转】
最近需要将课设代码上传到Github上,之前只是用来fork别人的代码. 这篇文章写得是windows下的使用方法. 第一步:创建Github新账户 第二步:新建仓库 第三部:填写名称,简介(可选), ...
- github 上传或删除 文件 命令
git clone https://github.com/onionhacker/bananaproxy.git cd ~/../.. git config --global user.email & ...
- GitHub上传文件或项目的教程
既然是往GitHub上传文件,那GitHub账号必须得有,这时候就会有同学问:妖怪吧,我没有GitHub账号怎么办? 别急别急,打开GitHub网站https://github.com/,然后注册就O ...
- github上传时出现error: src refspec master does not match any解决办法
github上传时出现error: src refspec master does not match any解决办法 这个问题,我之前也遇到过,这次又遇到了只是时间间隔比较长了,为了防止以后再遇到类 ...
随机推荐
- ubuntu 一些命令
打开终端 ctrl+alt+t 关闭中端 ctrl+shift+q 打开ppt openoffice.org -g xx.ppt &
- LoadRunner之篇
一.LoadRuuner 转载至:http://wenku.baidu.com/view/48c4c802e87101f69e319582.html
- yii2的form表单样式怎么灵活控制呢?
<?php $form = ActiveForm::begin(['id' => 'login-form', 'fieldConfig'=>[ 'template'=> &qu ...
- ORA-00907: 缺失右括号
创建表时出现ORA-00907: 缺失右括号的情况 调整关键字的顺序 CREATE TABLE s_dept(ID PRIMARY KEY NOT NULL NUMBER(7),NAME NOT NU ...
- React组件生命周期过程说明
来自kiinlam github94 实例化 首次实例化 getDefaultProps getInitialState componentWillMount render componentDidM ...
- stl::map之const函数访问
如何在const成员数中访问stl::map呢?例如如下代码: string ConfigFileManager::MapQueryItem(const string& name) const ...
- [wxWidgets] 2. 重访“Hello World” 程序
这是四年多来在博客园的第二篇博客.有了上一次的排版使用经验,这一篇文章应该有些进步(^_^). 闲话按下不表,言归正传.在编译.成功运行了上一个helloWorld.cpp(后文中'hw'简称hell ...
- Windows下修改Oracle监听端口
先放开防火墙的端口,再来改监听端口. 只有一个实例: net stop OracleOraDb11g_home1TNSListener 再运行 NET Manager 修改实例名与Listener的端 ...
- javascript基础部分
javascript基础部分 1 数据类型: 基础数据类型(通过typeof来检测):Number,string,undefined,null,boolean,function typeof只能检测 ...
- c++ 调用模板函数时加template什么意思?
看到这么一句stack_.template Top<ValueType>()->SetObjectRaw(members, (SizeType)memberCount, GetAll ...