第一次在github上提交項目

因爲昨天用到了Crypt_GPG項目,感覺這個項目很好,但是如果你只是簡單的加解密GPG的話,這個可能用起來不太方便,所以我精簡了一下Crypt_GPG的代碼,整理了一份兒比較少的版本,只需要導入需要解密的文件,填寫私鑰和私鑰密碼,就可以進行解密的非常簡單的版本。

基本上在github上提交的過程是這樣的:

1.首先在github頁面添加一個repository.

2.然後git clone https://github.com/linjunjie/php-simple-gpg.git php-simple-gpg 到本地。

3.之後將你的代碼copy到這個目錄中。

4.然後git add .

5.之後git commit -m ‘init’

6.然後我們 git push -u origin master 就可以將代碼提交到github中了。

andy@AndyMacBookPro:/usr/local/src/php-simple-gpg$
andy@AndyMacBookPro:/usr/local/src/php-simple-gpg$ git push -u origin master
Username for 'https://github.com': zhangsanfeng123@gmail.com
Password for 'https://[email protected]@github.com':
Counting objects: 14, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (13/13), 44.38 KiB | 0 bytes/s, done.
Total 13 (delta 2), reused 0 (delta 0)
To https://github.com/zhangsanfeng/php-simple-gpg.git
   2da835f..4b77f7e  master -> master
Branch master set up to track remote branch master from origin.
andy@AndyMacBookPro:/usr/local/src/php-simple-gpg$
發佈了348 篇原創文章 · 獲贊 28 · 訪問量 204萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章