首页 > 其他 > 详细

git

时间:2019-07-26 15:43:14      阅读:68      评论:0      收藏:0      [点我收藏+]
$ ssh-keygen -t rsa -C "youremail@example.com"
$ git config --global user.name "your name"
$ git config --global user.email "your_email@youremail.com"
 
git add <filename>
git add *
git init
c/user/尹/.ssh/id_rsa
 
已提交暂存区但还未提交远端仓库
命令:git commit --amend -m
 
git reset HEAD~6
 
将提交到暂存区的文件回撤
$ git commit --amend
git reset HEAD~4
 
 
git checkout -B master
git checkout -b master
 
 git merge --no-commit develop 

强制覆盖本地分支

git fetch --all git reset --hard origin/master
git pull

git

原文:https://www.cnblogs.com/ywsheng/p/11250567.html

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