快速上傳項目到github
阿新 • • 發佈:2017-08-23
add 之前 剛才 tro ron 直接 repo repl repos
上傳之前
1 現有一個github的賬號
2 有一個項目的源碼文件
3 生成一個ssh key ,如何增加一個ssh key ,參考 :https://help.github.com/articles/generating-ssh-keys/
4 安裝 Git for windows (我在windows下操作)
開始上傳
1 在gthub上面穿件一個倉庫 repository , 得到一個ssh地址 [email protected]:ddfdsf/dsafds.git
2 進入源碼文件夾 ,右鍵 點擊git bash here (前提是已經成功安裝git for windows )
3 開啟一個bash 窗口,當前路徑已經在剛才點擊的路徑(pwd 進行查看)
4 鍵入如下命名
git init //產生一個.git 文件夾
git remote add origin [email protected]:ddfdsf/dsafds.git
git add.
git commit //出現一個vi ,添加一些commit 信息 ,或者直接 用參數 -m "commit mesage !"
git push -u origin master
上傳成功
快速上傳項目到github