Skip to content

Commit e047981

Browse files
authored
Updated CONTRIBUTING.md (#1233)
1 parent 7242047 commit e047981

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

CONTRIBUTING.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Before you submit your pull request consider the following guidelines:
6464
* Make your changes in a new git branch:
6565

6666
```shell
67-
git checkout -b my-fix-branch master
67+
$ git checkout -b my-fix-branch master
6868
```
6969

7070
* Create your patch, **including appropriate test cases**.
@@ -73,20 +73,20 @@ Before you submit your pull request consider the following guidelines:
7373
* Commit your changes using a descriptive commit message.
7474
7575
```shell
76-
git commit -a
76+
$ git commit -a
7777
```
7878
Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
7979
8080
* Build your changes locally to ensure all the tests pass:
8181
8282
```shell
83-
./gradlew build
83+
$ ./gradlew build
8484
```
8585
8686
* Push your branch to GitHub:
8787
8888
```shell
89-
git push origin my-fix-branch
89+
$ git push origin my-fix-branch
9090
```
9191
9292
* 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:
9595
* Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
9696
9797
```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
100100
```
101101
102102
That's it! Thank you for your contribution!
@@ -109,25 +109,25 @@ from the main (upstream) repository:
109109
* Delete the remote branch on GitHub either through the GitHub Android UI or your local shell as follows:
110110

111111
```shell
112-
git push origin --delete my-fix-branch
112+
$ git push origin --delete my-fix-branch
113113
```
114114

115115
* Check out the master branch:
116116

117117
```shell
118-
git checkout master -f
118+
$ git checkout master -f
119119
```
120120

121121
* Delete the local branch:
122122

123123
```shell
124-
git branch -D my-fix-branch
124+
$ git branch -D my-fix-branch
125125
```
126126

127127
* Update your master with the latest upstream version:
128128

129129
```shell
130-
git pull --ff upstream master
130+
$ git pull --ff upstream master
131131
```
132132

133133
## <a name="rules"></a> Coding Rules

0 commit comments

Comments
 (0)