temporary repo for playing with the github process
To add changes to this repository:
Use the fork & pull method as described here:
https://help.github.com/articles/using-pull-requests
These steps only need to happen once, and then you can use your local copy of your fork as your working copy. Of course, you can repeat these steps any time you like and create as many forks as you like.
- Login to the github web interface with your account
- Navigate to pmem.io/tmp, click on View on GitHub button
- Click on the Fork button in the upper right to create your own fork
- Navigate to your fork, the repo is under your account
- Grab the clone URL from box the lower right
- Click SSH and grab that URL, like
[email protected]:MY_GITHUB_ACCOUNT/tmp.git
- Click SSH and grab that URL, like
- Clone your repo to your local machine:
- Example:
git clone https://github.com/MY_GITHUB_ACCOUNT/tmp.git
- your SSH key (in settings) must be set for this to work
- you may need git-proxy configuration
- Example:
- Set up the original repo as a remote called upstream
- Example:
git remote add upstream [email protected]:pmem/tmp.git
- Example:
Most of these steps happen on your local machine. The github web interface is only necessary as noted.
- Create a topic branch for your work
- Example:
git checkout -b MY_BRANCH_NAME
- Use any branch name you like, it won't end up in the main repo
- Example:
- Edit/Test/Commit...
- Push changes up to your github area
- Example
git push origin MY_BRANCH_NAME
- Example
- Using the web interface, submit a pull request
- See Initiating the pull request here: https://help.github.com/articles/using-pull-requests
- Use the web interface to participate in the discussion of your pull request
- As required, make additional changes to the same branch and push them to your github area
- Your updates will automatically become part of the existing pull request
To prepare for the next change, you'll want to delete the old topic branch and re-sync with the original repo. Of course you can always just delete your tree and start with the initial steps again.
- Go back to the master branch on your local tree
- Example:
git checkout master
- Example:
- Delete the old topic branch locally
- Example:
git branch -D MY_BRANCH_NAME
DISCARDS CHANGES IN MY_BRANCH_NAME!
- Example:
- Delete the old topic branch in your github area
- Example:
git push origin --delete MY_BRANCH_NAME
- Example:
- Pull latest changes from original repo
- Example:
git pull upstream master
- Example:
- Push the update back to your github area
- Example:
git push origin master
- Example: