Skip to content

Git Notes

Ariella Gladstein edited this page Mar 12, 2019 · 2 revisions

Basic Git workflow

git fetch
git pull
git add ${file}
git commit -m "comment comment comment"
git push

Working with a fork

Add the remote (NCBI-Hackathons/RNA-Seq-in-the-Cloud)

git remote add upstream https://github.com/NCBI-Hackathons/RNA-Seq-in-the-Cloud.git
git fetch --all
git remote -v

See
https://help.github.com/en/articles/configuring-a-remote-for-a-fork

Sync with the remote (NCBI-Hackathons/RNA-Seq-in-the-Cloud)

git checkout master
git merge upstream/master

see
https://help.github.com/en/articles/syncing-a-fork