zoukankan      html  css  js  c++  java
  • 日常

    1. 获取年月日时间戳

    parseInt(moment(value).hours(0).minutes(0).seconds(0).valueOf()/1000) * 1000
    

    2. git删除本地分支

    git branch -d feat/xxx
    

    3. git删除远程分支

    git push origin -d feat/xxx
    

    4. xcode清理缓存

    ~/Library/Developer/Xcode
    

    5. git 切换远程仓库地址

    // url为新的仓库地址
    git remote set-url origin URL 或者
    // 删除现有远程仓库 git remote rm origin
    // 添加新仓库 git remote add origin url

    // 查看远程仓库地址
    git remote -v

    6. git 强制提交本地分支覆盖远程分支

    git push origin 分支名 --force
    

    7. react-native本地包 apk文件通过USB安装命令

    adb install /Users/包路径/release/app-release.apk
    

    8.  查看端口占用情况

    lsof -i tcp:port
    lsof -i :8081

    9. 杀掉指定pid端口

    kill -9 <PID>
    

    10. react native 打开开发者菜单 类似command+R

    adb shell input keyevent 82
    

    11.  react报错'React' must be in scope when using JSX

    import react, {Component} from 'react'
    

      

  • 相关阅读:
    899. Orderly Queue
    856. Score of Parentheses
    833. Find And Replace in String
    816. Ambiguous Coordinates
    770. Basic Calculator IV
    冒泡排序(Bubble Sort)
    C
    B
    A
    HDOJ-1391
  • 原文地址:https://www.cnblogs.com/sk-3/p/12836336.html
Copyright © 2011-2022 走看看