forked from openSUSE/artwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
git-mini-howto-for-github.txt
55 lines (40 loc) · 1.22 KB
/
git-mini-howto-for-github.txt
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
44
45
46
47
48
49
50
51
52
53
54
***************************************
*
* GITHUB artwork repository
*
**************************************
Substract of the http://en.opensuse.org/openSUSE:Marketing_and_Artwork_repository wiki page
git mini-howto
cd the-place-you-want-the-repo
git clone git@github.com:openSUSE/artwork.git
git remote add origin
cd artwork/
git remote add origin git@github.com:openSUSE/artwork.git
git checkout -b master
git remote add origin git@github.com:openSUSE/artwork.git
# now edit something, add files etc ...
# vi posters/README
git add *
# or you can use more selective ways git add mynewfolder/mysuper-art-contrib.svg
git commit -m "This is a usefull comment which describe what I updated"
git push origin master
# Update your copy
git pull
#########
#
# Merging a request
# 1 is the request number is this case
#
########
# Check out a new branch for integration
git checkout -b merge-requests/1
# Fetch the merge request into this branch
git pull \
git@github.com:openSUSE/artwork.git \
refs/merge-requests/1
# Show the commits, assess they are okay
git log --pretty=oneline --abbrev-commit master..merge-requests/1
# To apply the changes to your branch:
git checkout master
git merge merge-requests/1
git push origin master