houstonaltnet

 

Git

Page history last edited by (account deleted) 8 mos ago

Website references mentioned:

GitHub Guides: http://github.com/guides/home

Gitcasts by Scott Chacon: http://www.gitcasts.com

Git Tutorial: http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html

Git for someone with Subversion knowledge: http://git.or.cz/course/svn.html

Git Community Book lead by Scott Chacon: http://book.git-scm.com/

Git Magic (Stanford E-book): http://www-cs-students.stanford.edu/~blynn/gitmagic/

The Prag Prog Book: http://pragprog.com/titles/tsgit/pragmatic-version-control-using-git

Git User's Manual: http://www.kernel.org/pub/software/scm/git/docs/user-manual.html

Git Ninja Scott Chacon: http://jointheconversation.org/

Everyday Git (20 commands or so): http://www.kernel.org/pub/software/scm/git/docs/everyday.html

Git for the lazy: http://www.spheredev.org/wiki/Git_for_the_lazy

 

The Cheat Sheet: http://ktown.kde.org/%7Ezrusin/git/git-cheat-sheet-medium.png

 

Probably the best place for references: http://git-scm.com/documentation

 

The session mainly became a translation between Subversion and Git.

 

REPO

Subversion:

Remote/Central repository

Git:

Remote/Central (aka Canonical/Upstream) repository

Local Repository

 

HAPPY PATH

Subversion:

svn checkout

...code changes...

svn update

svn commit  (sends changes to remote repository)

Git:

git clone

...code changes...

git add <change files>  OR   git add .

git commit -m "message"  (sends changes to local repository)

git pull

git push (sends changes to remote repository)

 

 

Why switch from Subversion to Git:

1. Local branch management

2. Lack of necessity of connectivity to remote repository

3. Speed

 

Another common question:  What is the difference between "git pull" and "git fetch".  "git pull" is "git fetch" + "git merge".

 

We showed examples of local branching.

 

To see your current branches:

git branch

 

The branch you are on, will have an asterik next to it:

* master

 

Create another branch:

git branch dev

 

To see your current branches again:

git branch

 

will result in:

* master

   dev

 

Switch to the dev branch:

git checkout dev

 

View branches:

git branch

 

will result in:

   master

* dev

 

To create and go to a branch use the following command:

git checkout -b dev2

 

View branches:

git branch

 

will result in:

   master

   dev

* dev2

 

Comments (0)

You don't have permission to comment on this page.