close

開發流程

git clone git://xxxxxx

git remote add upstream ssh://xxxxx

push前記得先做 git pull upstream master 跟upstream得資料做同步 

操作提交記錄

git reflog 可以查看過去提交紀錄資訊

git reset --soft HEAD^ (取消提交保留更改)

git reset --hard HEAD^ (取消提交並刪除更改)

臨時隱藏更改/恢復更改

git stash save(隱藏)

git stash pop(恢復)

顯示修改記錄

git status

描述修改

git commim -m '敘述'

設定git config

git config --global user.name yourname

git config --global user.email youremail

加tag

git tag tagname 

(然後 git push origin tagname)

 

 

 

 

 

 

 

 

 

 

 

arrow
arrow
    文章標籤
    git
    全站熱搜

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