git命令

git pull origin develop
Git status
Git add
Git commit -m ‘’
Git push

修改本地分支名称:
git branch -m oldBranchName newBranchName

rm -i fileName. 删除文件
mv fileoldName fileNewName. 修改文件名
unzip fileName 解压文件

更新最新的包:@latest
创建目录:mkdir fileName
创建文件:touch fileName

yarn 清除缓存:yarn cache clean
incorrect integrity when fetching from the cache

git reset --soft HEAD~ 撤销上一次commit

sudo npm install Mac下载依赖
git checkout -b xxx 创建本地分支并切换到该分支
git push origin xxx 提交xxx分支
git merge origin/xxx 合并xxx分支代码
git branch -d xxx 删除本地分支

git branch -a 查看分支
git fetch -p // 小写p,更新远程分支
git remote update origin — prune 更新远程分支
git remote update origin -p 更新远程分支
git fetch origin -prune 更新远程分支

Node版本过高问题:
export NODE_OPTIONS=–openssl-legacy-provider

npm ERR! code ERESOLVE 解决方法/npm 版本问题
npm install --legacy-peer-deps

Mac配置环境变量起项目:
export NODE_ENV=sit&&npm start

github项目clone不下来:
1.翻墙
2.配置代理:git config --global http.https://github.com.proxy socks5://127.0.0.1:7890

下载完记得删除代理:git config --global --unset http.https://github.com.proxy

查看全部git config: git config --global -l

不处理拉下来代码问题直接合并:git commit --no-verify -m’xxxxxxxxxxxxxx’

字体包裁切。 Npm包。 font-spider

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值