Git
2015-08-03 22:08
246 查看
# Init a repo and add a remote
# Install from latest source
# Upgrade to a newer version
# The first configuration after installation completes.
# Branch and merge
# Rename local and remote branch
# Remove remote branch, and clean local obsolete tracking branches
git init . git remote add origin https://sumuthwork.visualstudio.com/DefaultCollection/_git/Azure%20Gallery git push --set-upstream origin master
# Install from latest source
sudo apt-get update sudo apt-get install libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext wget https://github.com/git/git/archive/master.zip unzip master.zip cd git-master make prefix=/usr/local all sudo make prefix=/usr/local install
# Upgrade to a newer version
git clone https://github.com/git/git.git cd git make prefix=/usr/local all sudo make prefix=/usr/local install
# The first configuration after installation completes.
git config --global user.name "Jeffrey Fan" git config --global user.email email@domain.com
# Branch and merge
git checkout master git branch pxc-draft-3 mkdir pxc mv PXC-* pxc/ git add ... git commit ... git config --global push.default simple git push --set-upstream origin pxc-draft-3
# Rename local and remote branch
git branch -m pxc-with-haproxy-patch-1 pxc-draft-1 git push origin :pxc-with-haproxy-patch-1 git push origin pxc-draft-1
# Remove remote branch, and clean local obsolete tracking branches
git push origin :dev git fetch origin -p
相关文章推荐
- spark 源码阅读博客
- myeclipse web tomcat
- Shiny框架小结(1)
- 空指针、野指针、const、void
- 菜单栏 工具栏 没什么说的 ....努力
- c++ opencv显示对话框
- Linux OOM killer 机制
- 20150803-解析
- c++ opencv显示对话框
- 关于java ee 7 精粹
- opencv Mat读取图像元素时出现越界错误
- c++ opencv 入门
- c++ opencv 入门
- LeetCode DB : Delete Duplicate Emails
- 盗版win10升级win10正式版
- (一〇五)二维码的生成和扫描
- HDU 1112 The Proper Key DFS+模拟
- c++ auto_ptr笔记
- IOS成长之路-导航栏的实现
- atheros无线驱动初始化流程