Skip to content

Instantly share code, notes, and snippets.

@edcote
Created December 13, 2017 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edcote/b4740cb265596a326a52e4d8d1e6b0c8 to your computer and use it in GitHub Desktop.
Save edcote/b4740cb265596a326a52e4d8d1e6b0c8 to your computer and use it in GitHub Desktop.
GitHub Notes

GitHub

Steps to submit a patch to a public repo

1. Fork the repository using GUI
1. Clone your forked repo
1. Create the branch locally, e.g.: `git branch devel-edcote` (should be descriptive name)
1. Push the new branch up to your fork: `git push origin devel-edcote`
1. Switch to your new new: `git checkout devel-edcote`
1. Do development work, make commits, ...
1. Pull from upstream: `git pull --rebase upstream devel-edcote` (CHECKME)
1. Push your changes to your repo: `e.g. git push`

Adding your private remote

More info: https://help.github.com/articles/fetching-a-remote/

# add remove repo
git remote add github https://github.com/edcote/berkeley-hardfloat.git
# show remote branches
git branch -r
# pull remove repository
git pull remotename branchname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment