1. 程式人生 > >免輸入使用者名稱和密碼以及git clone以後想提交程式碼

免輸入使用者名稱和密碼以及git clone以後想提交程式碼

git push的時候免輸入使用者名稱和密碼:

https://www.jianshu.com/p/6c61b13e8bdb

-----------------------------------------------

git clone https://github.com/appleyuchi/Learning-Spark.git

cd Learning-Spark
git remote remove origin
git remote add origin [email protected]:appleyuchi/Learning-Spark.git
git push --set-upstream origin master


下面新增檔案後提交:
touch test2.txt
git status
git add test2.txt
git commit
git push