码迷,mamicode.com
首页 > 其他好文 > 详细

Git memo

时间:2018-01-01 23:44:53      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:sub   github   comm   key   epo   any   config   技术   remote   

技术分享图片

1. Installation

$ git config --global user.name "yourname"
$ git config --global user.email "youremail"
$ ssh-keygen -t rsa -C "youremail"

2. Local repository

$ git init

3. Submit

$ git add filename
$ git commit -m "description"

4. Operations

$ git status
$ git rm filename
$ git push origin master
$ git pull

5. Remote repository

$ git remote add origin git@github.com:accountname/reponame.git
$ git push -u origin master
$ git clone git@github.com:accountname/reponame.git

Git memo

标签:sub   github   comm   key   epo   any   config   技术   remote   

原文地址:https://www.cnblogs.com/humz/p/8169051.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!