-
Notifications
You must be signed in to change notification settings - Fork 3
Version Control with git
Jonathan King edited this page Oct 29, 2018
·
1 revision
- Create (academic) github account.
- Click Fork.
- Clone with SSH.
git clone <url from your forked git repository>
- Set upstream repo to David's.
git remote add upstream git@github.com:dkoes/docs.git
- Get updates from David's repo.
git fetch upstream
- 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.