git pull

In github, to sync latest code.

$ git pull

 

 

https://www.earthdatascience.org/courses/intro-to-earth-data-science/git-github/github-collaboration/update-github-repositories-with-changes-by-others/

 

 

Create a bew dev branch based on master.

$ git checkout -b development
$ git push origin development

https://stackoverflow.com/questions/39478482/how-to-create-development-branch-from-master-on-github

 

 

 

How to push your change to one branch?

 

 git add .

git commit -a -m "test"

 git commit --amend

 git push origin  target-branch

 

 

 

 

 

 

posted on 2020-09-28 14:46  cdekelon  阅读(71)  评论(0)    收藏  举报

导航