GIT Tutorial - Branching and Merging.
Loading...
9,664
Loading...
Uploader Comments (dordrak)
see all
All Comments (26)
-
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...
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 5 months ago
@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'.
dordrak 5 months ago
If I'm using github, how do I push a new branch to the server?
rafaelcalsaverini 5 months ago
@rafaelcalsaverini git push origin branchname - assuming your remote is called 'origin', which is is by default.
dordrak 5 months ago
@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.
dordrak 9 months ago
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 1 year ago
@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.
dordrak 1 year ago