GIT continued


Branch often, Commit often!


HEAD – most recent commit of currrent branch


  • when you merge, you merge INTO the current branch
  • go to the branch(checkout)
  • merge into the branch

commit – its cheap, saves only some basic info, does not save whole files.  after a commit, you form a link to its parent.

More commands:

git branch <branch name> – creates a branch

git checkout <branch name> – checks out a branch, changes which branch you are on

git merge <branch name> – merges branch with name <branch name> onto current branch


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s