github学习之路

Ubuntu系统

github下载atom安装git-plus 和git-diiff插件

但是之前先在终端下载git,然后还要配置如下

$ git config --global user.name "Your Name"

$ git config --global user.email "email@example.com"

创建版本库

用终端创建mkdir xxx   

http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013743256916071d599b3aed534aaab22a0db6c4e07fd0000

http://blog.csdn.net/xsckernel/article/details/8563993 查看配置

https://www.youtube.com/watch?v=7Id1_VfbEKo 视频使用

一旦commit 就变回原来的颜色

gkgy@gkgy:~$ xclip -selection c  id_rsa.pub
xclip: id_rsa.pub: No such file or directory
gkgy@gkgy:~$ cd /home/gkgy/.ssh
gkgy@gkgy:~/.ssh$ xclip -selection c  id_rsa.pub
gkgy@gkgy:~/.ssh$

成功 xclip要自己下载

 接着才能在你的电脑使用atom里的git-plus

ctrl+shift+H 点击init初始化

先add 可以add好几次,然后一次commit

add+commit来改动

然后输入信息,比如你的更改目的 然后ctrl+s来 保存

atom的github如何配置https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

Neither do I! Thankfully, there's a nifty little tool called ssh-agent that can securely save your passphrase, so you don't have to re-enter it

http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013745374151782eb658c5a5ca454eaa451661275886c6000

还是廖雪峰那个教程真的不错

一开始我总是push不进去

结果是我需要现在自己的电脑上建立自己的仓库 比如叫learncode然后在终端配置好

然后用atom打开这个仓库,接着在github建立一抹一样的名字的仓库,然后让两个仓库同步,就可以了 具体见廖雪峰

原文地址:https://www.cnblogs.com/gkgy/p/5958477.html