[Git]常用命令整理(自用,用到哪整理到哪)

发布时间 2023-11-08 09:27:55作者: 夕苜19

git add .      暂存所有更改

git commit -m '描述'

git push

git pull

git branch 新分支名                   以当前分支内容,新建一个分支

git branch -m 旧名字 新名字
 
合并某个分支的内容到本分支下:
git checkout 发起合并的分支名         (切换分支)
git merge 被合并的分支名                 (合并分支)
 
修改commit信息:https://blog.csdn.net/Chris_zhangrx/article/details/122018096