sudo invoke-rc.d rabbitmq-server start/stop
=show all queues
sudo rabbitmqctl list_queues
==redis operations==
/etc/init.d/redis_6379 start/stop
-------------------------------------
查看远程分支 git branch -a
查看本地分支 git branch
创建分支 git branch test
把分支推到远程分支[git push remote_name localbranch_name]: git push origin test
转换到新建的 testing 分支 git checkout testing
M 表示cong 原来分支(上一次修改没有提交br-2.1.2.2)带过来的修改
删除本地分支 git branch -d xxxxx
show username: git config user.name
show git all info: git config --list
change git username: git config --global user.name "Alvin J. Alexander"
show email: git config user.email
索引内容添加到仓库中: git commit -m "提交的描述信息"
--------------------------------------------
远程分支就是本地分支push到服务器上的时候产生的: git push origin master
除了master之外,我们还可以随便创建分支,然后push到服务器上去 : git push origin develop
远程分支和本地分支需要区分,所以,在从服务器上拉取特定分支的时候,需要指定本地分支名字: git checkout --track origin/develop
同步本地远程分支:
1 $: git fetch origin
4.提交分支数据到远程服务器:
1 $: git push origin <local_branch_name>:<remote_branch_name>
例如:
1 $: git push origin develop:develop
当然如果当前在develop分支下,也可以直接
1 $: git push
5.删除远程分支develop:
1 $: git push origin :develop
第一次创建的时候服务器上面没有任何分支(使用git init --bare).那么在本地创建了之后需要推送一个分支到服务器上面。
即:第一次push必须这样写 git push origin master:master
git checkout master //取出master版本的head。
git checkout tag_name //在当前分支上 取出 tag_name 的版本
git checkout master file_name //放弃当前对文件file_name的修改
git checkout branch_name tag_name //取指定分支branch_name的tag_name的版本
git checkout commit_id file_name //取文件file_name的 在commit_id是的版本。
commit_id为 git commit 时的sha值。
**danger**删除远程版本 git push origin :br-1.0.0