12
Why does nobody talk about how confusing Git is when you start?
Was working on a small project last night for class, just a simple website. I added some files, did a commit, then tried to push to GitHub. Got some error about diverged branches. No idea what that meant. Spent 20 minutes googling and still don't really get it. How do you guys handle stuff like this without just breaking everything?
2 comments
Log in to join the discussion
Log In2 Comments
brian_coleman15d ago
Wait, did you try pulling from the remote branch before you pushed? Thats usually what causes the diverged branches error, you just gotta pull first and then itll work. Youre not supposed to push without syncing first, otherwise the stuff doesnt line up right.
9
abby_carr5715d ago
Right, @brian_coleman, but who has time to read the manual?
2