Commands help you manage remotes:
add:
git remote add project git://github.com/user/project.git
This will create "project" pointing to git://githun.com/user/project.git
rename:
git remote rename project test
This renames "project" to "test" in a remote and it's remote-tracking branches
rm:
git remote rm project
This deletes "project" remote and any remote-tracking branches we've fetched.
change url:
git remote set-url example git://github.com/user/test.git
This sets the URL of the remote named "example" to git://github.com/user/test.git
2011年11月23日 星期三
git shortcut
git diff --staged; git diff --cached
0. To diff HEAD and added but not committed files
git format-patch -1 SHA1
0. To patch only this commit
git --abbrev-commit --pretty=oneline
0. To shorten SHA1 number and show only one line of commit logs
0. To diff HEAD and added but not committed files
git format-patch -1 SHA1
0. To patch only this commit
git --abbrev-commit --pretty=oneline
0. To shorten SHA1 number and show only one line of commit logs
訂閱:
文章 (Atom)
標籤
- 生活
- 閒聊
- android
- arm
- assembly
- beaglebone black
- bl
- business trip
- car rental
- coupon
- cross compile
- cygwin iphone toolchain install build
- dropbear
- embedded system
- find
- GDB
- gdbserver
- grep
- instruction
- io
- kinect
- life
- linux
- openni
- programming
- QT visual studio express 2008 install
- qualcomm
- qualcomm business trip
- replace
- rild
- san diego
- ssh
- substitute
- system realated
- toolchain
- ubuntu
- vim ^M 換行
- Windows CE VM