GIT: getting decentralized
▪ What is it?
▪ SVN and GIT
▪ How to install and create repository?
▪ Updating repository, reversing changes
▪ Team work philosophies
▪ Basic commands for team collaboration
management (SCM) system with an emphasis on speed.
Git was initially designed and developed by Linus
Torvalds for Linux kernel development.
Every Git working directory is a full-fledged repository with
complete history and full revision tracking capabilities, not
dependent on network access or a central server.
1. Download git from here
2. Register your name and e-mail in git
$ git config –global user.name “<desired name to be seen as author of code>”
$ git config –global user.email “<desired e-mail to be seen as authors of code>”
3. Clone repository via supplied path
$ git clone <path>
initializes a new client
syncs client to repositories
starts a new branch
stages files ( adds to index )
shows status of current branch
commits staged files
shows current branches
git branch [branch]
creates new topic branch
git checkout [branch]
switches HEAD to specified branch
git merge [branch]
merges [branch] with current branch
shows diff of unstaged changes
shows history on current branch
Uploads changes to review server
1. Create file and commit it to local repository.
2. Push it to remote repository.
3. Make branch and change one line in the file.
4. Merge it with master.
5. Push changes to remote repo.
6. View master log.
▪ Everyday commands
▪ Visual guide to GIT
▪ Easy version control with GIT
▪ Advanced programmer guide to GIT
▪ Version control SVN and GIT
development, so make yourself
understand it and use correctly:
commit with comments.