GIT : getting decentralized
GIT : getting decentralized
Agenda
Installation and cloning
Branching philosophy
Team player / issue / bug fix philosophy
Practical tasks
Questions ?
References and useful links
 Git is important part of our project development, so make yourself understand it and use correctly:   commit with comments.
559.56K
Category: programmingprogramming

GIT : getting decentralized

1. GIT : getting decentralized

Ivan Chyr
01/04/2013

2. GIT : getting decentralized

Ivan Chyr

3. Agenda

▪ What is it?
▪ SVN and GIT
▪ How to install and create repository?
▪ Updating repository, reversing changes
▪ Team work philosophies
▪ Basic commands for team collaboration

4.

distributed revision control and source code
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.

5.

6.

7. Installation and cloning

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>

8.

9. Branching philosophy

10. Team player / issue / bug fix philosophy

11.

Command syntax
Description
repo init
initializes a new client
repo sync
syncs client to repositories
repo start
starts a new branch
git add
stages files ( adds to index )
repo status
shows status of current branch
git commit
commits staged files
git branch
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
git diff
shows diff of unstaged changes
git log
shows history on current branch
repo upload
Uploads changes to review server

12. Practical tasks

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.

13. Questions ?

14. References and useful links

Simplified views:
▪ Everyday commands
▪ Visual guide to GIT
▪ Easy version control with GIT
Advanced philosophy:
▪ Advanced programmer guide to GIT
▪ Version control SVN and GIT

15. Git is important part of our project development, so make yourself understand it and use correctly: commit with comments.

Git is important part of our project
development, so make yourself
understand it and use correctly:
commit with comments.
English     Русский Rules