# 本文目的

記錄常用的git指令在這裡,
本文會不定時的做更新。

# git 簡易操作介面

請到下面的網址,安裝好了之後,執行gitt,
舉例來說,可以利用快速鍵來做git add的指令動作。
http://github.com/fast-change-dir

# 在自己的server端,建立repo

mkdir git_repo_new_name
cd git_repo_new_name
git --bare init
git update-server-info

# 想要忽略某些資料夾或是檔案

請在你的repo裡面的根目錄,輸入以下的指令
echo 'dir01/dir11/*' > .gitignore

# 回到上一次commit的狀態

git revert HEAD^

# 為什麼push的時候,會出現以下的訊息
# warning: You did not specify any refspecs to push, and the current remote
# warning: has not configured any push refspecs. The default action in this
# warning: case is to push all matching refspecs, that is, all branches
# warning: that exist both locally and remotely will be updated. This may
# warning: not necessarily be what you want to happen.

請參考以下的網址
http://blog.endpoint.com/2008/07/git-push-know-your-refspecs.html

可能是因為沒有加上要push的目標,以及分支的名稱
arrow
arrow
    全站熱搜

    付爸爸 發表在 痞客邦 留言(0) 人氣()