第一次在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万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章