LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   git Tutorial (https://www.linuxquestions.org/questions/linux-newbie-8/git-tutorial-772980/)

MTK358 12-02-2009 10:25 AM

git Tutorial
 
I wanted to use git version control for my programming projects, but I can't find a very good explanation of how to use it. Maybe you can give me some hints or show me a simple tutorial?

Didier Spaier 12-02-2009 10:46 AM

http://www.kernel.org/pub/software/s...ttutorial.html

and of course "man git" or "info git.

Google is you friend ;)

ozanbaba 12-02-2009 10:47 AM

Quote:

Originally Posted by MTK358 (Post 3777226)
I wanted to use git version control for my programming projects, but I can't find a very good explanation of how to use it. Maybe you can give me some hints or show me a simple tutorial?

GitWine is a nice tutorial. it might be a little specific for wine but it has general usage information, too.

MTK358 12-02-2009 12:44 PM

I wonder, how do you revert to a previous commit and then get back to a newer one?

Quakeboy02 12-02-2009 12:52 PM

Quote:

Originally Posted by MTK358 (Post 3777394)
I wonder, how do you revert to a previous commit and then get back to a newer one?

Could you use a branch for this; i.e. create a branch before you revert? I admit that I'm not much of a git user.

ozanbaba 12-02-2009 01:33 PM

Quote:

Originally Posted by MTK358 (Post 3777394)
I wonder, how do you revert to a previous commit and then get back to a newer one?

git reset and git revert are used for this
git reset makes sure that last commit is not done

check man pages they have examples

MTK358 12-02-2009 04:05 PM

Here's a nice video tutorial I found:

http://www.gitcasts.com/posts/page/1


All times are GMT -5. The time now is 10:36 PM.