e.g.
1. Log in to GitHub, and on this project's page, click "Fork" to your own repository.
2. Clone your repository to your local machine:
$ git clone https://github.com/xxx/Ansible-VIM-IDE.git
3. Add the original repository as the upstream branch on the master branch:
$ git remote add upstream https://github.com/Hello-Linux/Ansible-VIM-IDE.git
4. Create a new development branch locally:
$ git checkout -b dev
5. Make code changes and commit on the development branch:
$ git add .
$ git commit -am 'xx change description'
6. Switch to the master branch and synchronize with the original repository:
$ git checkout master
$ git pull upstream master
7. Switch to the dev branch, merge the local master branch (which is now synced with the original repository), resolving any conflicts if needed:
$ git checkout dev
$ git merge master
8. Push the local dev branch to your remote dev repository:
$ git push origin dev
9. On your GitHub repository page, click "Compare & pull request" to send a pull request to the original repository.
10. Wait for the original author's response (accept/reject).
No comments:
Post a Comment