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

git 常见命令

时间:2019-01-08 21:00:45      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:初始   window   tor   修改   origin   his   ini   git push   ted   

windows + R

cd ......

 

设置账号

git config --global user.name "名称"

git config --global user.email "邮箱"

 

 

初始化版本库 

git init

 

提交暂存

git add -A

 

提交修改内容

git commit -m "first commit”

 

指定云端的项目地址

git remote add origin https://gitee.com/项目地址/项目名称.git

 

拉取云端文件

git pull origin master --allow-unrelated-histories

 

推送同步到远端

git push -u origin master

git 常见命令

标签:初始   window   tor   修改   origin   his   ini   git push   ted   

原文地址:https://www.cnblogs.com/antique/p/10240836.html

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