I think I don't understand git branches

Posted by Hans on Stack Overflow See other posts from Stack Overflow or by Hans
Published on 2012-06-22T09:11:24Z Indexed on 2012/06/22 9:16 UTC
Read the original article Hit count: 164

Filed under:
|

Salutations everyone,

I have been working on a bash script as a small summer project to learn more about UNIX scripting and on using git.

This has been the first time that I have used branches in git, normally I just stick to master.

I was viewing the git log with the graph (git log --graph) when I noticed that my 'develop' branch seemed to have merged with 'master'. Something like this:

master   ----1--------3----4----5----6----HEAD
develop      \---2---/

but commits 3 onwards were done within the develop branch. Doing git checkout master and git checkout develop showed this to be true.

What exactly is going on? Is this what is known as fast-forwarding?

P.S.: Commits 1 and 2 are also a mystery to me being that commit 2 is actually an amendment of commit 1 (as far I thought, I used this advice)

© Stack Overflow or respective owner

Related posts about git

Related posts about bitbucket