8. Push your branch up to the remote


#1

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
ose-hw
* [new branch] rachel-comments -> rac
hel-comments

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?


#2

id check *new branch


#3

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


#4

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


#5

Thanks @ionatan, that was very helpful!


#6

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