linux 常用命令
2016-11-10 00:00
92 查看
find . -name "ss" //查找
/usr/local/Cellar //homebrew的安装扩展的路径
pod repo update //升级pod本地版本仓库
========================git 系列
git log //查看历史版本
git branch -a //查看远程分支
git branch //查看本地分支
git branch -va //本地 加 远程 分支查看
git branch dacai //创建本地分支
git push origin dacai //本地推到到远程 无则新创建1个分支
git branch -d dacai //删除本地分支
git push origin :dacai //删除远程的分支
git checkout dacai //切换到本地分支
1: git branch remotes/origin/dacai 2: git checkout -b dacai //切换到远程分支
git remote -v //查看远程git仓库地址
.git/refs //存在提交记录信息
git add <file> //增加文件
git reset HEAD <file> //移除文件
git status //查看文件的状态
git fetch origin master //拉取远程数据 但是并不合并
git merge origin/master //合并分支 远程的分支合并到本地的
git reset --hard aae3110c5b921e2db00258f5671f97e4b448c145 //回滚
git reset --hard //回滚到上次提交之前 放弃本次的所有修改
git tag -a 2.0 -m “11.16″ //本地打包Tag
git push origin v1.1 //v1.1将标签提交到git服务器
git push origin –tags //将本地所有标签一次性提交到git服务器
git tag //查看当前分支下的tag
git show fbe1f49298951a1bef5e2ac2406eead711ffb578 //显示提交的内容
git rm name //删除文件
git push origin +dacai1:dacai1 //强行推送到远程分支
/usr/local/Cellar //homebrew的安装扩展的路径
pod repo update //升级pod本地版本仓库
========================git 系列
git log //查看历史版本
git branch -a //查看远程分支
git branch //查看本地分支
git branch -va //本地 加 远程 分支查看
git branch dacai //创建本地分支
git push origin dacai //本地推到到远程 无则新创建1个分支
git branch -d dacai //删除本地分支
git push origin :dacai //删除远程的分支
git checkout dacai //切换到本地分支
1: git branch remotes/origin/dacai 2: git checkout -b dacai //切换到远程分支
git remote -v //查看远程git仓库地址
.git/refs //存在提交记录信息
git add <file> //增加文件
git reset HEAD <file> //移除文件
git status //查看文件的状态
git fetch origin master //拉取远程数据 但是并不合并
git merge origin/master //合并分支 远程的分支合并到本地的
git reset --hard aae3110c5b921e2db00258f5671f97e4b448c145 //回滚
git reset --hard //回滚到上次提交之前 放弃本次的所有修改
git tag -a 2.0 -m “11.16″ //本地打包Tag
git push origin v1.1 //v1.1将标签提交到git服务器
git push origin –tags //将本地所有标签一次性提交到git服务器
git tag //查看当前分支下的tag
git show fbe1f49298951a1bef5e2ac2406eead711ffb578 //显示提交的内容
git rm name //删除文件
git push origin +dacai1:dacai1 //强行推送到远程分支
相关文章推荐
- Linux下常用配置文件及常用命令的介绍
- Linux 常用命令汇编(一)
- Unix/Linux常用监控和管理命令工具
- Linux下常用网络配置文件及常用命令的介绍
- Linux开发中的常用命令
- linux常用的命令详细说明
- Linux下的常用命令和设置
- Linux常用命令
- Linux常用命令介绍
- Linux 的常用网络命令
- Linux 入门常用命令
- linux常用开发命令
- Linux常用命令和服务器配置
- Linux 的常用网络命令
- linux常用命令及技巧
- Linux开发中的常用命令
- LINUX选修课讲义:UNIX常用命令
- Linux 入门常用命令
- Linux常用命令(2)
- Linux开发中的常用命令