git 基本操作

1、git init

2、git config --global user.name "[yourname]"

     git config --global user.email "[youremail]"

3、git add [-A/-u/-i]

4、git commit -m "[your message]"

5、git push -u [origin] [master]

 

6、git remote add [git address]

7、git clone [git address]

 

例外:生成ssh公钥命令如下:ssh-keygen -t rsa -C "[your email]" 然后一路回车即可

 

posted @ 2015-03-30 16:33  梅里之巅  阅读(280)  评论(5编辑  收藏  举报