Beruflich Dokumente
Kultur Dokumente
1
Background
2
Installation
3
Installation
4
Step 1: Install msysgit
http://code.google.com/p/msysgit/downloads/list?can=2&q=Full+install
er+for+official+Git+for+Windows
5
Step 1: Install msysgit
6
Step 2: Install Tortoisegit
http://code.google.com/p/tortoisegit/wiki/Download
Pick 32 bit or 64 bit version according to your OS.
7
Step 2: Install Tortoisegit
8
Connect GitHub with TortoiseGit
9
Create remote GitHub Repository:
(skip this step if you use existing GitHub repository)
10
Create remote GitHub Repository
(continue)
11
Create remote GitHub Repository
(continue)
12
Clone remote repository to your machine
The purpose of this step is to clone the repository from remote server
to your local machine.
13
Clone remote repository to your machine
14
Clone remote repository to your machine
15
Add new project
16
Start New Project:
You have created a folder myrepo on your local machine.
You have created a project repository on github (TriNutProj).
17
Add new project to repository
18
Add new project to repository
19
Add new project to repository
20
Add new project to repository
21
Push to GitHub Server
22
Push to GitHub Server
23
Push to GitHub Server
After you provide github username and password. You should have success.
24
Basic use of TortoiseGit
25
Git Development Workflow:
Commit to local
repository
26
Developers daily life
1. Pull remote repository (optional)
2. Edit the file / Add new files.
3. Local build
4. Add the changed files to staging area
5. Commit files to local repository to create a local milestone.
6. Repeat step 2 to step 5 if needed.
7. Push the change to central repository
1) Pull the remote repository.
2) Merge the conflict
3) Local build and fix the error
4) Push to remote repository.
27
Pull from GitHub
28
Change and Commit files.
In Git, you dont need to check out file to change the content.
You can use any editor to change files.
When you commit the change. You need Add new file to the git, then commit.
After commit, it is only in your local repository. It is a local milestone.
29
Push the change to github server.
In order for other people to see the change, you need to push the change(s) to
github server.
30
Next steps:
Git is a very power full tool. This tutorial only cover basic operation. In order to
use Git correctly and efficiently, you need to consult with your configuration
manager and system architect for following:
Repository strategy
Branch and release strategy
How to connect Git to code review tool and automatically build.
How to revert a change.
31
Use TortoiseGit with TFS-GIT
32
Why TFS-GIT
Just like Apple fans, Microsoft developers love TFS.
TFS is very popular in Microsoft development paradigm. But it is very
unpopular outside.
TFS is tied with Visual Studio. Add Java, Perl script and other files to Visual
Studio?
Outside world > Microsoft world. Big companies normally do not depend on
one vendor.
We will describe how to connect TortoiseGit to TFS-Git. You can use this
strategy to cover both Microsoft development and non-Microsoft development
(e.g. Java, Perl, etc.).
33
Create TFS-Git Project
Go to http://tfs.visualstudio.com/en-us/tfs-welcome.aspx
Create a free account.
In your page, create a new team project using TFS-Git template.
34
Enable TFS-Git for TortoiseGit
35
My Blackberry 10 project on TFS
36