GIT Tutorial - Branching and Merging.

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
9,664
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 25, 2010

Tutorial on branching and merging with GIT.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (dordrak)

  • The tutorial automatically starts out in a branch. However, I am not in a branch and I don't believe that I have ever created one, so none of the commands I am trying will work. How can I create a new branch first???

  • @skcin7 Understand that in git *everything* is a branch. 'master' is just a branch too - it's not like in svn/cvs where branches are litterally branches on a tree. In GIT branches are contexts. A repository in GIT in just a container of branches and external remotes (where you can push branches too).

    To create a branch from the context you are in, use 'git branch fooname', you can then check it out with 'git checkout fooname'.

  • If I'm using github, how do I push a new branch to the server?

  • @rafaelcalsaverini git push origin branchname - assuming your remote is called 'origin', which is is by default.

  • @boazhachlili I'm using MSysGIT (for commandline) and TortoiseGIT for the GUI - which integrates with Windows Explorer. I'm just overlaying windows so you can see what's happening more easily.

    @everyone else, thanks for the kind comments.  I've learned a lot more about GIT since I made these videos and I'm inspired to make some more when time allows.

  • Why did you used first git add command, and then git commit -a command ? git commit -a is doing the same as previous command, so it's looking redundant.

  • @SublimeYe "git commit -a" is not the same as "git add". "git add" first tells GIT to track the files, it's adds them to the staging area in the repository. "git commit -a" simply tells GIT to commit all changed files (that GIT is tracking). If you do not first issue "git add" then GIT will simply ignore the file when you try to commit it.

see all

All Comments (26)

Sign In or Sign Up now to post a comment!
  • Great tutorial :) This helped me a lot ;)

  • @dordrak Here take some of my time i have quite a few on my hands , how much time do you need ? I kid i kid , thx for the tutorial very helpful .

  • @dordrak Which Editor are you using in the Video?

  • good!! help me a lot

  • Excellent Tutorial

  • This was very instructive!

    Thank you very much.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more