-
Notifications
You must be signed in to change notification settings - Fork 114
Using Github with ED2
Michael Dietze edited this page Mar 14, 2014
·
8 revisions
-
First fork pecan on github into your own github space (github help: "fork a repo")
-
Introduce yourself to GIT
git config --global user.name "FULLNAME" git config --global user.email [email protected]
-
If you are working from a cluster, you may need to set up ssh keys
-
Clone to your local machine
git clone [email protected]:<username>/ED2.git
- Define upstream
git remote add upstream [email protected]:EDmodel/ED2.git
1 - Get the latest code from the main repository
git pull upstream master
2 - Do some coding
3 - Commit after each chunk of code (multiple times a day)
git commit -m "<some descriptive information about what was done>"
4 - Push to YOUR Github (when a feature is working, a set of bugs are fixed, or you need to share progress with others)
git push origin <branchname>
5 - Before submitting code back to the main repository, make sure that code compiles
./scripts/build.sh -c
6 - submit pull request (see github documentation)