How to upload your project to GitHub
来源:互联网 发布:阿里云cdn节点ip 编辑:程序博客网 时间:2024/05/17 23:56
git rm -r —cached .git add .
1. 在github上注册账号
2. 在github上new一个repository
选择add .gitignore
3. 在MAC电脑生成ssh秘钥
ssh-keygen -t rsa -C “email@email.com”在随后出现的输入项中输入以下内容:
Enter file in which to save the key (/Users/用户名/...ssh/id_rsa): ???[若不填写,默认生成id_rsa文件]
Enter passphrase (empty for no passphrase): ?????/ [密码需大于4位]
之后将生成的id_rsa.pub文件内容复制到github->account setting->SSH Keys中
4. xcode本地git库建立
- 一种是方法是在创建project的时候选择[Create Git repository on]。
- 另一种方法如下,在项目目录下执行 git init
5. xcode pull remote库
点开项目将ssh的URL地址复制出来
选择[Check out an existing project]
pull remote库,再覆盖前面的本地project
6. 清除本地cache
git rm -r —cached .git add .先commit,再push至github
0 0
- How to upload your project to GitHub
- upload local project to github
- how to upload my project files to online svn host?
- How to use Log4net in your project
- How to create a maven repository for your github project step by step
- How to deploy maven project to tomcat inside your eclipse
- How to import a static library into your test project?
- How to add QuartzCore.framework for your project in xcode?
- How to use cocoa pod in your iOS project
- Share your java project to GitHub by EGit
- Configure github with mac and upload an existing project to github by using terminal
- How to avoid relying on github: mirror your repository
- How do I clone a github project to run locally?
- Github how to use
- How to use github
- How to use Automake and Autoconf to manage your project? ( 1 )
- How To Upload An Image into BSP
- How to Upload Large Files in PHP
- date0405/SingleDemo.java
- Linux下的管道编程
- OC--面向对向的三大特性(二)
- 字符串反转实现的几种方式
- JAVA学习第7天(2)java当中的异常2
- How to upload your project to GitHub
- oracle修改列的类型
- date0405/SingleTest.java
- 3.5 Mediator(中介者) -- 对象行为型模式
- leetcode-Search Insert Position
- maven常用插件
- date0405/StaticCodeDemo.java
- 线程的分离状态
- date0405/StaticDemo.java