1. git status
2. git add -A
3. git status
4. git config --list
5. git commit -m "Vincen fix the bug that 'the To DO list cannot be shown in the iframe properly' and 'Quick Start Menu no response after click on the icons and it is missing on first load, appears only after reloading page' in 'dashboardComponent'"
6. git log -3
7. git push origin vincen/master uat
8.新文件夹拉代码:https://blog.youkuaiyun.com/yjtt__/article/details/118891533
(export GIT_SSL_NO_VERIFY=true
git config --global http.sslVerify "false"
)
9.撤销commit:
git reset --soft HEAD^
( git reset --hard commit_id )
git push --force origin
(git push origin HEAD --force)
git commit -m "create Fes login and logout api"
git reset --hard HEAD^ 回退到上个版本
$ git reset --hard HEAD~3 回退到前3次提交之前,以此类推,回退到n次提交之前
$ git reset --hard commit_id 退到/进到 指定commit的sha码
删除远程分支vincen :git push origin --delete vincen
创建本地分支 vincen:git checkout -b vincen
删除本地分支 vincen:git branch -D vincen
与远程分支建立链接:git branch --set-upstream-to=origin/vincen vincen //<branch>指远程分支
↑<branch>
舍弃本地代码,远端版本覆盖本地版本(慎重)
1 git fetch --all
2 git reset --hard origin/vincen 参数撤销工作区中所有未提交的修改内容,将暂存区与工作区都回到上一次版本,并删除之前的所有信息提交
3 git fetch
关于git stash 用法
Git stash save
Git stash list
Git stash apply
Git stash pop
Git stash show
Git stash branch <name>
Git stash clear
Git stash drop
git cherry-pick 6a498ec
git log --oneline
git cherry-pick fd23e1c 6a498ec f4f4442
git cherry-pick 6a498ec --no-commit