天天看點

git、tortoise免使用者名密碼送出、拉取

git/tortoise每次拉取和送出都要輸使用者名密碼,覺得很麻煩。打開git bash輸入下面的指令

git config --global credential.helper store
           

接着輸入

git pull /git push (這次仍·需要輸入使用者名和密碼,以後就不用啦),這時會讓你輸入使用者名和密碼, 這一步輸入的使用者名密碼會被記住, 下次再pull/push代碼時就不用輸入使用者名密碼 ! 這一步會在使用者目錄下生成檔案.git-credential記錄使用者名密碼的資訊。