- commit your code
1 | git add . |
- merge your branch to master 以master為主要branch
1 | git checkout master |
git pull origin master
1 | 檢查是否有conflict要修 |
git push origin master:[module name]
1 |
|
git add remote kyo /home/kyo/web/mc2
1 |
|
git pull remote kyo master
1 |
|
git fetch remote kyo master:kyo
1 |
|
git config --global user.name 「Your Name」
git config --global user.email [email protected]
###設定git環境
cd ~ #進入個人home目錄
ex./home/fish
vi .gitconfig
####編輯git環境檔,貼上以下環境設定變數
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green
changed = red