Slides: https://docs.google.com/presentation/d/1r_HpKOhmXmceVYapa1DUkRaaAXIAJEgwMMVCShTmjHQ
Handout: https://github.com/irisli/cs69/blob/master/git-handout.pdf
Blockchain at Berkeley has a git-demo repository. Where you can try it out yourself. Follow the instructions below to make a pull request to the demo repository.
- Create or log in to your GitHub account
- Go to https://github.com/BerkeleyBitcoin/git-demo
- Fork the repo (top right hand corner of the webpage)
- Go to your fork https://github.com/yourusername/git-demo (GitHub should have automatically redirected you already)
- Clone the repo:
git clone https://github.com/yourusername/git-demo
- Go into the folder:
cd git-demo
- Create a new branch:
git checkout -b branch-name
- Make sure you are now in your new branch:
git branch
- Edit a file or make a new one
- Add the changes:
git add hog.py
- Commit the changes:
git commit -m "Write a descriptive message here"
- Push the changes:
git push origin branch-name
- Go to https://github.com/BerkeleyBitcoin/git-demo
- Pull requests -> new pull request
- Add some descriptions to your pull request and create it