__2017-12-11 如一模式识别研究

如一模式识别研究

deeplearning>>命令行给github更新操作

这里可以借助paddle项目的更新办法:http://www.paddlepaddle.org/doc/build/contribute_to_paddle.html

Contribute to PaddlePaddle

Creating a Fork

Just head over to the GitHub page and click the “Fork” button. It’s just that simple.

Clone

Once you’ve created a fork, you can use your favorite git client to clone your repo or just head straight to the command line:
# Clone your fork to your local machine
git clone https://github.com/USERNAME/Paddle.git

Then you can start to develop by making a local developement branch

git checkout -b MY_COOL_STUFF_BRANCH origin/master

Commit

Commit your changes by following command lines:

# show the working tree status
git status
# add modified files
git add xx
git commit -m "commit info"

The first line of commit infomation is the title. The second and later lines are the details if any.

Keeping Fork Up to Date

Before pull your request, you should sync your code from the latest PaddlePaddle. To do this, you’ll need to add a remote at first:

# see the current configured remote repository
git remote -v
# add upstream repository
git remote add upstream https://github.com/baidu/Paddle.git
# verify the new upstream
git remote -v

Update your fork with the latest upstream changes:

git pull --rebase upstream HEAD

If there are no unique commits locally, git will simply perform a fast-forward. However, if you have been making changes (in the vast majority of cases you probably shouldn’t be), you may have to deal with conflicts.

Now, your local master branch is up-to-date with everything modified upstream.

Push to GitHub

# push to your repository in Github
git push origin HEAD

Pull Request

Go to the page for your fork on GitHub, select your development branch, and click the pull request button.

Update your pull request with the lastest version

During the code review, your pull request may become stale because new commits in baidu/Paddle. GitHub allows autmotic update if there is no conflict. You can do this by clicking the “Update Branch” button in your pull request page. However, in the case of conflict, you need to do the update manually. You need to do the following on your local repository:

git checkout MY_COOL_STUFF_BRANCH
git pull --rebase upstream HEAD
# You may need to resolve the conflict according to the git prompt.
# Make and test your code.
git push -f origin HEAD

Now your Pull Request is updated with the latest version.


评论留言区

安喜:
  任溶溶 

anxi:
  这个只能在ubuntu上用吧? 

游客:
  不知道好用不? 

作者: 游客 ; *
评论内容: *
带*号为必填项目

如一模式识别更新提示

matlab在图像处理方面的应用有更新

如一模式识别 友情链接

关于本站作者     chinaw3c     mozilla