github如何修改源码并进行提交方法小结

来源:互联网 发布:公司宣传画册设计软件 编辑:程序博客网 时间:2024/05/22 19:45
/********************************************************************* * Author  : Samson * Date    : 04/26/2014 * Test platform: *              3.11.0-12-generic #19-Ubuntu *              GNU bash, version 4.2.45 * *******************************************************************/

以下是github如何修改源码并进行提交方法小结:

主要是针对从网上下载的代码进行了修改后,如何提交修改后的代码到github服务器上的方法:

#Get you project from github:

v0id@eof ~/code $ git clone https://github.com/*******.git

v0id@eof ~/code $ git status




#modify file by your need, and update github source.

v0id@eof ~/code $ git add your_file_changed_version

#commit modify file or resource

v0id@eof ~/code $  git commit -a -m "update java  for delete"


#push commit to github server.

v0id@eof ~/code $  git push


#enter your github user name and pw.
1 0
原创粉丝点击