git基本操作

来源:互联网 发布:新加坡贸易数据 编辑:程序博客网 时间:2024/06/05 22:52

正常提交branch基本操作:

$cd github                                  //切换到相应文件夹$git init                                        //初始化代码仓库$git checkout -b test             //创建一个test分支并切换到当前该分支$git add .                                    //添加当前文件$git commit -m '测试'           //提交并添加注释$git push origin test             //push branch
到gitshub上面去pull request