首页 > 其他 > 详细

Git

时间:2019-04-07 19:27:58      阅读:94      评论:0      收藏:0      [点我收藏+]

常用Git命令

新建版本库

git init

线上库和线下库合并

git pull

在git bash中输入命添加 ssh key

$ ssh-keygen -t rsa -C "youremail@example.com"

从github上下载:

git clone git@github.com:fast-cache/fast-cache.git

在项目中修改当前git用户名和邮箱,使其和GitHub的一致。

cd fast-cache
git config user.name 'fast-cache'
git config user.email 'fast-cache@github.com'

提交到GitHub

git add .
git commit -m "first update"
git push origin master

Git

原文:https://www.cnblogs.com/louisduan66/p/10666488.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!