-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit.howto
43 lines (33 loc) · 929 Bytes
/
git.howto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Simple howto, about git.
master@github
------------------*-----*---------*------
| | ^
pull | pull | push |
| | |
master@home v v |
------------*-------------*-----*--------
branch \ / merge
\ /
branch@home *---*-----*-----
hopefully this diagram shows the procedure :)
in git:
when at master (git branch master)
git pull
git checkout -b <myBranch>
[| hack and git commit |]
git checkout master
git pull
git merge <myBranch>
git push
# if you don't need the branch you created anymore
git branch -d <myBranch>
Please add more information if needed :)
By popular demand, here is my .gitconfig file:
--------------------------------------------------
[core]
editor = vim
[color]
ui = auto
[merge]
tool = vimdiff
--------------------------------------------------