国外网站怎么推广,wordpress插件微信,网站页面怎么做地图,网站自助建设平台git status查看当前本地分支的修改状态 git diff 文件路径 查看具体文件的修改内容 git log打印用户信息 git remote -v查看远程地址 git checkout -- *还原被删除的文件 git rm -r --force .删除本地所有文件 git commit -m Remove all files from repositor… git status查看当前本地分支的修改状态 git diff 文件路径 查看具体文件的修改内容 git log打印用户信息 git remote -v查看远程地址 git checkout -- *还原被删除的文件 git rm -r --force .删除本地所有文件 git commit -m Remove all files from repository提交所有代码 git clone 克隆项目 git remote add 添加远程地址 git add 添加所有文件 git push -u origin master 推送 git log 分页 or 退出
如果 git log 的输出比屏幕还要长通常会使用像 less 或 more 这样的分页器来显示。在这种情况下你可以按下 Q键来退出。如果使用的是 less按下 Q 键。如果使用的是 more按下 Space 键按一次一页或者 Q 键。
repo 使用 初始化仓库 repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest 下载单仓 repo sync platform/frameworks/base repo sync platform/frameworks/native repo sync packages/apps/Launcher3 repo sync packages/apps/Settings
参看对应分支 cd manifest git branch 查看当前分支 git branch -a 查看所有分支 git branch -a |grep android11- 切换分支 git checkout -b android-8.0.0_r17 origin/android-8.0.0_r17
14 .git撤销文件修改 git checkout -- 文件名
15 .撤销到最近一次的提交 git reset --hard HEAD