emailconfirmed, nsInternRO, nsInternRW, Administrators
3,356
edits
m (→Advantages) |
(added summary and tutorial link) |
||
Line 78: | Line 78: | ||
So: forget CVS and SVN, with GIT there's really no excuse to not use a versioning systems anymore. There is also bazaar, which claims to be even easier than GIT, but isn't as widely adopted. | So: forget CVS and SVN, with GIT there's really no excuse to not use a versioning systems anymore. There is also bazaar, which claims to be even easier than GIT, but isn't as widely adopted. | ||
== Summary == | |||
'''tl;dr''' | |||
* git != github.com | |||
** git is a local version control software. You have to install git locally on your machine | |||
** then (!) you can (!) add remote git servers to your local repository. This is where github, gutbucket & co (or your own git-server) come into the game | |||
** but then again, git works fine just locally. You do not need to use a remote server, nor do you have to use github or any other service provider. | |||
* the most important commands you want to remember are | |||
** <tt>git init</tt> | |||
** <tt>git remote add origin {ssh://myserver.com}</tt>'' (Add remote Server)'' | |||
** <tt>git status</tt> | |||
** <tt>git add .</tt> | |||
** <tt>git commit -a -m "minor changes"</tt> | |||
** <tt>git push origin master</tt> ''(Push to remote Server; where 'master' is the name of your current branch)'' | |||
* you might want to use a git control software with a graphical user interface | |||
** github.app supports git in general, not only github related repositories. Its nicely designed and really useable. Available for: [http://mac.github.com Mac], [http://windows.github.com Windows]) and [http://mobile.github.com Mobile] (mainly for github features) | |||
** SourceTree as featured from Bitbucket, for [http://www.sourcetreeapp.com Mac] ... though I wouldn't recommend this to beginners. | |||
** Many IDEs support git as well (Xcode, Coda, Textmate, Sublime via Plugin …), so you don't even need to leave your coding environment | |||
* Commit very frequently! | |||
** In fact, commit after every small step and try to be as accurate as possible on your commit messages. | |||
* Branch! | |||
** Whenever you want to try something or are faced with the need to add, change or delete more than one or two files: create a new branch. It's easy, lightweight and you can revert or merge at any point. | |||
== Tutorial == | |||
An [[/Tutorial|(advanced) tutorial]], mainly based on input commands to set up a project with a remote server. | |||
== Links == | == Links == |