This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 424
Workflow using the terminal
Rex edited this page Nov 21, 2016
·
3 revisions
If you are used to work inside a terminal, this workflow may help you…
All other conventions and pro tips provided above still apply. Please read all the steps above carefully before following the steps in this section.
- Cloning locally your forked repo
$ git clone [email protected]:YOUR_GITHUB/angular.io.git
- Adding upstream “angular.io”
$ git remote add angular.io [email protected]:angular/angular.io.git
- Fetching and rebasing updates from “angular.io”
$ git fetch angular.io
$ git merge angular.io/master
- [ProTip] You can add this two commands to your .gitconfig file and create a git alias:
$ nano ~/.gitconfig
[alias]
angular-cn = !"git fetch angular.io && git merge angular.io/master"
- And then, in your terminal you can use this new alias:
$ git angular-cn
- Pushing the new fetched changes from “angular.io” to your forked repo
$ git push origin master
If you encounter conflicts when rebasing, you need to resolve them.