forked from ERCpy/ercpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub_howto.txt
45 lines (33 loc) · 1.74 KB
/
github_howto.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
1st, create an account on github.com
In the following commands:
remplace your own user.name instead of MartialD
remplace your own user.email instead of martial.duchamp@gmail.com
#Github commands:
git config --global user.name "MartialD"
git config --global user.email "martial.duchamp@gmail.com"
#To get the repositeries locally on your machine (has to be done only the 1st time)
git clone https://github.com/ERCpy/ercpy
#To update your local directory from your own on-line repository
git pull https://github.com/MartialD/ercpy master
#If you which to update your local directory from the ERCpy master
git pull origin master
#Send new files from your local directory to the on-line ERCpy repository
git add .
#####################
'git add --ignore-removal <pathspec>', which is the current default,
ignores paths you removed from your working tree.
'git add --all <pathspec>' will let you also record the removals.
#####################
# Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD YOUR-FILE'.
git commit -m 'First commit'
# Commits the tracked changes and prepares them to be pushed to a remote repository. To remove this commit and modify the file, use 'git reset --soft HEAD~1' and commit and add the file again.
git push https://github.com/MartialD/ercpy master
#Then, go on the ERCpy website to ask your change to be commited on the master branh of ERCpy
#useful links
https://docs.python.org/2/distutils/introduction.html#distutils-simple-example
https://packaging.python.org/en/latest/distributing.html
https://wiki.python.org/moin/Distutils/Tutorial
#Branching
#https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
#Switched to another branch "iss53"
git checkout -b iss53