https://github.com/unixmonkey/learngit
https://github.com/unixmonkey/learngit
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/unixmonkey/learngit
- Owner: unixmonkey
- Created: 2013-10-09T19:17:35.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-07-15T21:15:20.000Z (over 9 years ago)
- Last Synced: 2025-06-12T13:09:59.952Z (5 months ago)
- Language: GCC Machine Description
- Size: 90.8 KB
- Stars: 6
- Watchers: 2
- Forks: 59
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Learngit
===
The goal of this project is to help YOU learn how to contribute to someone's project on GitHub.
This is a playground, and an educational tool.
Feel free to send pull requests and open issues.
If you do not already have an account with [GitHub](https://github.com), please sign up.
Add the output of this (your SSH public key) to Github under "Account Settings" -> "SSH Keys'
cat ~/.ssh/id_rsa.pub
Fork the other project to your own Github account (in the top-right corner of the page, click Fork) and clone to work with locally
git clone git@github.com:YOUR_GITHUB_NAME/learngit.git
cd learngit/
git remote -v
Add a git remote for the upstream repository
git remote -v
git remote add upstream git@github.com:unixmonkey/learngit.git
git remote -v
git pull upstream master
Create a topic/feature branch (so you aren't working off of master)
git checkout -b my_awesome_new_feature
git branch
Edit some stuff and commit
vi stuff.md
vi README.md
git status
git add README.md stuff.md
git status
git commit
git status
git log
Push your changes to your Github fork
git push origin my_awesome_new_feature
Go to Github and create a pull request from your commit
Wait for change to be merged in by original maintainer
Pull in merged changes
git checkout master
git pull upstream master
Delete your local topic branch
git branch -d my_awesome_new_feature
git log