|
86 | 86 |
|
87 | 87 | 8. ### Remote synchronization from Repository(Repository <-- Remotr)
|
88 | 88 |
|
89 | | - # Undo the last commit. |
90 | | - $ git reset HEAD~1 |
| 89 | + # Push the current branch to the Remote Repository. |
| 90 | + $ git push origin [branch] |
91 | 91 |
|
92 | 92 |
|
93 | 93 | 8. ### Repository synchronization from remote (Repository <-- Remote)
|
|
113 | 113 | # Retrieve the changes to the Remote Repository and merge with the local branch.
|
114 | 114 | $ git pull origin [branch]
|
115 | 115 |
|
116 | | - # Push the local specified branch to the Remote Repository. |
117 | | - $ git push origin [branch] |
118 | | - |
119 | | - # Push all the branches to the Remote Repository. |
120 | | - $ git push origin --all |
| 116 | + |
121 | 117 |
|
122 | 118 |
|
123 | 119 | 6. ### Remote branch synchronization from local
|
|
0 commit comments