Git命令备忘】的更多相关文章

git 常用命令备忘 仅作为日常使用备忘,并非常用命名整理 删除源端分支 git push orgin --delete branch_a a分支某次提交应用到b分支 切换到branch_b 分支: git checkout branch_b 提交:git cheery-pick xxxxx(提交SHA-1) 合并多次提交为一次提交 git rebase -i HEAD~4 (合并最近4次提交) 然后编辑提交内容,p选择,s合并到更新的提交 --未完待续…
最近在用Git,查了点相关资料,逻辑依然不太明了,先整理一部分备忘,以后补充 一.本地Git与Github/码云的关联 1. 设置本地用户名,邮箱 git config --global user.name "用户名" git config --global user.email "邮箱" 2. 生成SSH Key 1. ssh-keygen -t rsa -C "邮箱" 2. clip < ~/.ssh/id_rsa.pub //复制SS…
文档:https://git-scm.com/docs 列出所有远程空间: git remote -v 重命名远程空间: git remote rename <old> <new> 删除远程空间: git remote remove <name> 列出所有分支(本地+远程): git branch -a 查看本地与远程分支对应关系: git branch -vv 关联本地与远程分支: git branch -u <远程空间/远程分支> [<本地分支&g…
metasploit 常用命令备忘    MSFconsole Commands-------------------------------------24show exploits 查看所有exploitshow payloads 查看所有payloadshow auxiliary 查看所有auxiliarysearch name 搜索exploit 等info 查看加载模块的信息use name 加载模块LHOST 本机IPRHOST 目标IPset function 设置选项值setg…
简单的记录下现在使用git的时候,暂时或者常用到的命令,纯粹自己备忘,没用到过的命令就不写了,日后有用到了在补充. 1.把远程仓库克隆到本地:git clone 远程地址 2.分支操作 新建分支:git banch 分支名 删除分支:git barnch -d 分支名 切换分支:git checkout 分支名 3.把远程仓库更新到本地:git push 4.把本地仓库推送到远程仓库:git pull 5.复位(回滚) git reset --hard:将最近一次提交回滚(在没有commit的时…
备忘 Ctrl+u:向文件首翻半屏: Ctrl+d:向文件尾翻半屏: Ctrl+f:向文件尾翻一屏: Ctrl+b:向文件首翻一屏: Esc:从编辑模式切换到命令模式: ZZ:命令模式下保存当前文件所做的修改后退出vi: :行号:光标跳转到指定行的行首: :$:光标跳转到最后一行的行首: x或X:删除一个字符,x删除光标后的,而X删除光标前的: D:删除从当前光标到光标所在行尾的全部字符: dd:删除光标行正行内容: ndd:删除当前行及其后n-1行: nyy:将当前行及其下n行的内容保存到寄存…
开场白:这里简单记录一些常用的bash命令,一则备忘,二来希望可以帮助别人解决一些问题. 1.检测文件是否存在 if [ -f ./foo.txt ] then echo the file exists fi 2. 检测目录是否存在 if [ -d ./test1 ] then echo the directory exists fi 3. 让高亮功能一直存在 androidyue@ubuntu:~/Desktop$ ls | grep s --color=always | more 4.使用c…
备忘: 关闭防火墙:# systemctl stop firewalld 查看防火墙状态:#  systemctl status firewalld 停止防火墙:#  systemctl disable firewalld 禁用防火墙:#  systemctl stop firewalld 查看selinux状态:# sestatus 查看某个文件在那个目录:# whereis phpize 安装5.6版本的php:# yum install php56w-redis.x86_64 php的一个…
本文参考廖雪峰写的精彩的git学习文档,大家可以直接去官网看原版,我这里只是便于自己记录梳理 原版地址:http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 ubuntu下可以直接sudo apt-get install git来安装git.如果是mac,Xcode自带git,但是版本可能比较低.你可以到git官网下载最新的git src或较旧的dmg文件到本地安装.安装完成后别忘了将…
Git配置 git config --global user.name "storm" git config --global user.email "stormzhang.dev@gmail.com" git config --global color.ui true git config --global alias.co checkout # 别名 git config --global alias.ci commit git config --global…