@@ -64,7 +64,7 @@ Before you submit your pull request consider the following guidelines:
64
64
* Make your changes in a new git branch:
65
65
66
66
``` shell
67
- git checkout -b my-fix-branch master
67
+ $ git checkout -b my-fix-branch master
68
68
```
69
69
70
70
* Create your patch, ** including appropriate test cases** .
@@ -73,20 +73,20 @@ Before you submit your pull request consider the following guidelines:
73
73
* Commit your changes using a descriptive commit message.
74
74
75
75
```shell
76
- git commit -a
76
+ $ git commit -a
77
77
```
78
78
Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
79
79
80
80
* Build your changes locally to ensure all the tests pass:
81
81
82
82
```shell
83
- ./gradlew build
83
+ $ ./gradlew build
84
84
```
85
85
86
86
* Push your branch to GitHub:
87
87
88
88
```shell
89
- git push origin my-fix-branch
89
+ $ git push origin my-fix-branch
90
90
```
91
91
92
92
* In GitHub, send a pull request to `firebase-quickstart-android:master`.
@@ -95,8 +95,8 @@ Before you submit your pull request consider the following guidelines:
95
95
* Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
96
96
97
97
```shell
98
- git rebase master -i
99
- git push origin my-fix-branch -f
98
+ $ git rebase master -i
99
+ $ git push origin my-fix-branch -f
100
100
```
101
101
102
102
That' s it! Thank you for your contribution!
@@ -109,25 +109,25 @@ from the main (upstream) repository:
109
109
* Delete the remote branch on GitHub either through the GitHub Android UI or your local shell as follows:
110
110
111
111
` ` ` shell
112
- git push origin --delete my-fix-branch
112
+ $ git push origin --delete my-fix-branch
113
113
` ` `
114
114
115
115
* Check out the master branch:
116
116
117
117
` ` ` shell
118
- git checkout master -f
118
+ $ git checkout master -f
119
119
` ` `
120
120
121
121
* Delete the local branch:
122
122
123
123
` ` ` shell
124
- git branch -D my-fix-branch
124
+ $ git branch -D my-fix-branch
125
125
` ` `
126
126
127
127
* Update your master with the latest upstream version:
128
128
129
129
` ` ` shell
130
- git pull --ff upstream master
130
+ $ git pull --ff upstream master
131
131
` ` `
132
132
133
133
# # <a name="rules"></a> Coding Rules
0 commit comments