Git命令(持续更新)
config相关
# 取消密码
git config --system --unset credential.helper
# 设置alias指令
git config --global alias.s "status"
stash相关
# 暂存当前改变
git stash
# 暂存内容并添加注释
git stash save "注释内容"
# 列出所有暂存内容
git stash list
# 从暂存区pop出最新的
git stash pop
# 指定stash
git stash apply stash@{0}
# 删除仓库所有stash
git stash clear
push相关
# -f 强制推送
git push -f
# 推送本地分支到远程
git push origin <local_branch>:<remote_branch>

浙公网安备 33010602011771号