Skip to content
Ben Best edited this page Apr 7, 2014 · 33 revisions

Process

github.com/[org]/[repo] (org web) github.com/[user]/[repo] (user web) ~/github/[repo] (user local)
->1x -> fork -> clone
<- merge pull request {admin} <- <- [pull request](Fork & Pull Model) <- push, <-> commit

where:

  • [org] is an organization (eg ohi-science)
  • [repo] is a repository in the orgranization (eg ohicore, ohiprep, etc.)
  • [user] is your github username

Resolving Conflicts

See:

# on BB's Mac, go to temporary folder
cd ~/GitHub_Mac/tmp

# clone repo for which I have admin
git clone https://github.com/ohi-science/ohiprep.git
cd ohiprep

# checkout a new branch and pull other repo onto it
git checkout -b Melsteroni-master master
git pull https://github.com/Melsteroni/ohiprep.git master
# CONFLICT (modify/delete): Global/NCEAS-Regions_v2014/ingest_checks.R 
#   deleted in e593aa10b875e6ac42740040aface8c9e974c762 and modified in HEAD. 
#   Version HEAD of Global/NCEAS-Regions_v2014/ingest_checks.R left in tree.
# Automatic merge failed; fix conflicts and then commit the result.

# make changes (for deleted files, simply `git add` to keep)
git add Global/NCEAS-Regions_v2014/ingest_checks.R

# commit, checkout master, merge updated branch, and push to remote
git commit
git checkout master
git merge Melsteroni-master
git push

Issues

Styling

Markdown

Reproducible Science

Clone this wiki locally