http://dufb751.blog.163.com/blog/static/207600520099299574699/ 生成模塊 setup.py
http://www.ibm.com/developerworks/cn/opensource/os-pythonpackaging/ python 打包指南python文件操作
http://www.cnblogs.com/rollenholt/archive/2012/04/23/2466179.html
http://blog.csdn.net/liuyuehui110/article/details/7243559
python 用例查找
python字符串操作
http://blog.csdn.net/ataraxia2010/article/details/6907907
http://www.cnblogs.com/SunWentao/archive/2008/06/19/1225690.html
http://www.pythondoc.com/pythontutorial3/index.html python入門指南
http://gitref.cyj.me/zh/branching/#branch git手冊
http://hi.baidu.com/lingyfh/archive/tag/git?page=1&qq-pf-to=pcqq.temporaryc2c git
http://blog.chinaunix.net/uid/9398085/cid-24305-list-1.html 原文
1.遠程分支就是本地分支push到服務器上的時候產生的。比如master就是一個最典型的遠程分支(默認)。
$: git push origin master
除了master之外,我們還可以隨便創建分支,然後push到服務器上去。例如:
1 $: git push origin develop
2 Counting objects: 27, done.
3 Delta compression using up to 2 threads.
4 Compressing objects: 100% (15/15), done.
5 Writing objects: 100% (15/15), 7.30 KiB, done.
6 Total 15 (delta 10), reused 0 (delta 0)
7 To [email protected]:projects/search.git
8 1b95a57..779dbe1 develop -> develop
2.遠程分支和本地分支需要區分,所以,在從服務器上拉取特定分支的時候,需要指定本地分支名字。
$: git checkout --track origin/develop
注意該命令由於帶有--track參數,所以要求git1.6.4以上!
這樣git會自動切換到develop分支。
3.同步本地遠程分支:
$: git fetch origin
4.提交分支數據到遠程服務器:
$: git push origin <local_branch_name>:<remote_branch_name>
例如:
$: git push origin develop:develop
當然如果當前在develop分支下,也可以直接 view sourceprint?1 $: git push
5.刪除遠程分支develop:
$: git push origin :develop
創建分支: $ git branch mybranch
切換分支: $ git checkout mybranch
創建並切換分支: $ git checkout -b mybranch
更新master主線上的東西到該分支上:$git rebase master
切換到master分支:$git checkout master
更新mybranch分支上的東西到master上:$git rebase mybranch
提交:git commit -a
對最近一次commit的進行修改:git commit -a –amend
commit之後,如果想撤銷最近一次提交(即退回到上一次版本)並本地保留代碼:git reset HEAD^
合併分支:(merge from) $ git checkout master
$ git merge mybranch (merge from mybranch)
刪除分支: $ git branch -d mybranch
強制刪除分支: $ git branch -D mybranch
列出所有分支: $ git branch
查看各個分支最後一次提交: $ git branch -v
查看哪些分支合併入當前分支: $ git branch –merged
查看哪些分支未合併入當前分支: $ git branch –no-merged
更新遠程庫到本地: $ git fetch origin
推送分支: $ git push origin mybranch
取遠程分支合併到本地: $ git merge origin/mybranch
取遠程分支並分化一個新分支: $ git checkout -b mybranch origin/mybranch
刪除遠程分支: $ git push origin :mybranch
rebase: $ git checkout mybranch
$ git rebase master (rebase from master)
舉例: $ git checkout server
$ git rebase –onto master server client
$ git checkout master
$ git merge client (fostforward)
$ git rebase master server (checkout sever)
$ git merge server
$ git branch -d client
$ git branch -d server