@@ -96,15 +96,12 @@ If you haven't done this before, run
96
96
97
97
```
98
98
git remote add java-repo-tools [email protected] :GoogleCloudPlatform/java-repo-tools.git
99
- git fetch java-repo-tools master
100
- # Optional, but it makes pushing changes upstream easier.
101
- git checkout -b java-repo-tools java-repo-tools/master
102
99
```
103
100
104
101
To detect if you have changes in the directory, run
105
102
106
103
```
107
- git fetch java-repo-tools
104
+ git fetch java-repo-tools master
108
105
git diff-tree -p HEAD:java-repo-tools/ java-repo-tools/master
109
106
```
110
107
@@ -124,25 +121,16 @@ To update the `java-repo-tools` directory, if you haven't done this before, run
124
121
125
122
```
126
123
git remote add java-repo-tools [email protected] :GoogleCloudPlatform/java-repo-tools.git
127
- git fetch java-repo-tools master
128
- git checkout -b java-repo-tools java-repo-tools/master
129
124
```
130
125
131
126
To pull the latest changes from this ` java-repo-tools ` repository, run:
132
127
133
- ```
134
- git checkout java-repo-tools
135
- git pull java-repo-tools master
136
- ```
137
-
138
- Pull them into the main code.
139
-
140
128
```
141
129
git checkout master
142
130
# Making a new branch is optional, but recommended to send a pull request for
143
131
# update.
144
132
git checkout -b update-java-repo-tools
145
- git merge --squash -Xsubtree=java-repo-tools/ --no-commit java-repo-tools
133
+ git pull -s subtree java-repo-tools master
146
134
```
147
135
148
136
Then you can make any needed changes to make the rest of the repository
@@ -176,6 +164,10 @@ git push java-repo-tools java-repo-tools:name-for-remote-branch
176
164
Then, you can send a pull request to the ` java-repo-tools ` repository.
177
165
178
166
167
+ ## References
168
+
169
+ - [ GitHub's subtree merge reference] ( https://help.github.com/articles/about-git-subtree-merges/ )
170
+
179
171
## Contributing changes
180
172
181
173
- See [ CONTRIBUTING.md] ( CONTRIBUTING.md )
0 commit comments