git命令arm

git命令

git rebase -i --root

git push --force

git reset HEAD Hello_Triangle // from stage to motified

git checkout – Hello_Triangle.c // cancel the motified

git remote show origin//check the remote server

git status 查看更改过的文件
git add path/to/files 将更改过的文件加入
git commit -m “title” 第一次提交时执行,写消息的标题
git commit --amend 写详细信息。详细信息要写在ChangeID之前,即保证ChangeID在最后
git pull --rebase rebase一下
git push origin HEAD:refs/for/master

除了使用–no-commit 在合并以前就取消提交以外,如果你已经合并了,但是不想提交,可以先
git commit
然后
git log找到上一个版本commit id(下文用xxxx指代)
git reset xxxx
然后再
git add .
git commit --amend就可以把合并进来的内容,放进之前的commit中了

git fetch origin master:tmp
git diff origin
git merge origin

git stash # save uncommitted changes
------pull, edit, etc.
git stash list # list stashed changes in this git
git show stash@{0} # see the last stash
git stash pop # apply last stash and remove it from the list

git stash --help # for more info

git reset HEAD xxx cancel the file in changed area

git pull and git fetch /merge

git merge --no-commit

git log --grep=word //find the word in git log

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值