Version Control with git - dkoes/docs GitHub Wiki
The Basics of Contributing to a Repo by Forking
How to Fork.
Setup Your Docs Repo Locally
- Create (academic) github account.
- Click Fork.
- Clone with SSH.
git clone <url from your forked git repository>
- Set upstream repo to David's.
- Get updates from David's repo.
- Checkout your own local master branch and merge it with David's master.
git checkout master
git merge upstream/master
-
Create and checkout a new branch.
git checkout master
git branch <new-name>
git checkout <new-name>
- Make your edits, commit, and push them.
git add <your-new-file>
git commit -m "descriptive message"
git push
- Go to your github repo online and select the branch you've made. Click on "New Pull Request", and review your changes below before submitting.
⚠️ **GitHub.com Fallback** ⚠️