8. Push your branch up to the remote


Everything on this exercise was going well until I got to this step. I tried doing

$git push origin my_branch

It looked like this worked. I got back:

Counting objects: 5, done.
Delta compression using up to 3 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 295 bytes | 0
bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To /home/ccuser/workspace/js-homework/maryr
* [new branch] rachel-comments -> rac

But then when I went into the remote directory "maryrose-hw", and looked at the homework.js file in there, it didn't include the comments I added. I'm not sure what I'm doing wrong! Help?


id check *new branch


Thanks for your help, but can you please elaborate? Is that the line I should be writing? Thanks!


If your remote isn't on the branch that you committed the changes to, then you'll probably want to either change which branch the remote is on, or merge the commits into the branch it's on


Thanks @ionatan, that was very helpful!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.