Coder Social home page Coder Social logo

wjfirstrespository's Introduction

半小时学会上传本地项目到github

####闲着无聊写给那些正在学习怎么上传本地项目到github的同学。

#开始学习 ###一、创建github账号
######好吧,这步多余了。😂😂😂😂😂 ###二、创建个人仓库
###[三、配置SSH keys](#三、配置SSH keys)
######使用终端进行配置 ###四、上传本地项目到github上 ######使用github客户端进行上传

一、创建github账号

image
#####接着会来到这 image image
#####然后会收到一封github发的邮件,进入邮箱验证

二、创建个人仓库


#####验证成功是这样的 ![image](https://github.com/bringbird/myFirstRespository/raw/master/image/4.png)
#####也可以来到个人中心里创建仓库
![image](https://github.com/bringbird/myFirstRespository/raw/master/image/5.png) ![image](https://github.com/bringbird/myFirstRespository/raw/master/image/6.png) ![image](https://github.com/bringbird/myFirstRespository/raw/master/image/7.png)
#####创建完成好之后是这样子的。创建仓库的时候最好别用中文,不然你的仓库名就会显示 - 这样一条小横线。 ![image](https://github.com/bringbird/myFirstRespository/raw/master/image/8.png)

三、配置SSH keys

#####终端里输入显示隐藏文件:defaults write com.apple.finder AppleShowAllFiles -bool true
#####关闭:defaults write com.apple.finder AppleShowAllFiles -bool true
#####输入命令完成之后需要重启Finder 桌面顶部苹果logo->强制退出-> 就可显示隐藏文件 image #####然后前往个人文件查看有没有 .ssh 文件夹,有的话个人建议删除掉,从新配置 image #####来到终端里输入指令:mkdir .ssh 创建一个 .ssh 文件夹 #####cd .ssh 进入刚创建的 .ssh文件夹目录里
#####输入指令:ssh-Keygen -t rsa -C “youEmail”双引号里填写你的邮箱地址 #####输入完成之后一直按回车键 中间会提示你要输入密码,不用管一直按回车直到出现这样。 image #####接着输入指令:ls -la 查看 如果输出类似这样的信息,就说明配置成功 image #####输入指令:pbcopy < ~/.ssh/id_rsapub 拷贝
#####登陆github 进入 SSH keys 添加刚刚拷贝的东西 image image #####添加完成之后是这样的

image #####然后回到终端输入指令:ssh -T [email protected] 执行完这条指令之后会输出 Are you sure you want to continue connecting (yes/no)? 输入 yes 回车 #####回到github,刷新网页就可以看到钥匙旁的灰色小圆点变绿,就表明已经添加成功了。

image

四、上传本地项目到github上

#####上传项目,这里我是用的是github客户端 #####下载好之后输入用户名 邮箱 密码登陆之后clone刚创建的仓库到本地 image #####接着打开clone到本地的文件夹 将需要上传的项目添加进去,这里以 FirstRespository 这个文件夹为例。 image #####添加之后回到github客户端 image #####然后点击右上角的image按钮 #####提交完成之后到仓库的首页刷新即可看到上传成功! image

恭喜你,已经成功的上传项目到自己的github仓库了

wjfirstrespository's People

Contributors

bringbird avatar

Watchers

James Cloos avatar gottaboy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.