{"node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "revisions": [{"id": "f3c14593-2f95-11f1-b6dc-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "git notes\r\n#########\r\n\r\n.. contents::\r\n\r\n\r\n\r\nSet a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\nif this is your first commit/push:\r\n\r\n.. code-block:: bash\r\n\r\n git push origin master\r\n \r\nelse:\r\n\r\n.. code-block:: bash\r\n\r\n git push\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\n|\r\n\r\nGo on vacation for 1 week\r\n Your local and origin repos now appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n|\r\n\r\n#. Tell your local repo about the upstream repo\r\n\r\n   .. code-block:: bash\r\n\r\n    git remote add upstream https://github.com/saltstack/salt.git\r\n    git fetch upstream\r\n\r\n#. view all branches\r\n\r\n   .. code-block:: bash\r\n\r\n    git branch -a\r\n\r\n    * develop\r\n     remotes/origin/0.11\r\n     remotes/origin/0.12\r\n     remotes/origin/0.13\r\n     remotes/origin/HEAD -> origin/develop\r\n     remotes/origin/develop\r\n     remotes/origin/master\r\n     remotes/origin/no_ipv6\r\n     remotes/upstream/0.11\r\n     remotes/upstream/0.12\r\n     remotes/upstream/0.13\r\n     remotes/upstream/develop\r\n     remotes/upstream/master\r\n     remotes/upstream/no_ipv6\r\n\r\n \r\n#. sync local with remote upstream\r\n\r\n   .. code-block:: bash\r\n\r\n    git pull upstream develop\r\n\r\n#. push local to remote origin\r\n\r\n   .. code-block:: bash\r\n\r\n    git push origin\r\n\r\n\r\n\r\nhow to set the git commit editor\r\n======================================\r\n\r\n.. code-block:: bash\r\n\r\n   git config --global core.editor \"vim\"\r\n\r\nhow to enable colorful diffs\r\n==================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --global color.ui true\r\n\r\n\r\n", "source_format": "rst", "revision_number": 18, "created": 1376649657000}, {"id": "f3c13dba-2f95-11f1-9dfa-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "git notes\r\n#########\r\n\r\n.. contents::\r\n\r\n\r\n\r\nSet a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\nif this is your first commit/push:\r\n\r\n.. code-block:: bash\r\n\r\n git push origin master\r\n \r\nelse:\r\n\r\n.. code-block:: bash\r\n\r\n git push\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\n|\r\n\r\nGo on vacation for 1 week\r\n Your local and origin repos now appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n|\r\n\r\n#. Tell your local repo about the upstream repo\r\n\r\n   .. code-block:: bash\r\n\r\n    git remote add upstream https://github.com/saltstack/salt.git\r\n    git fetch upstream\r\n\r\n#. view all branches\r\n\r\n   .. code-block:: bash\r\n\r\n    git branch -a\r\n\r\n    * develop\r\n     remotes/origin/0.11\r\n     remotes/origin/0.12\r\n     remotes/origin/0.13\r\n     remotes/origin/HEAD -> origin/develop\r\n     remotes/origin/develop\r\n     remotes/origin/master\r\n     remotes/origin/no_ipv6\r\n     remotes/upstream/0.11\r\n     remotes/upstream/0.12\r\n     remotes/upstream/0.13\r\n     remotes/upstream/develop\r\n     remotes/upstream/master\r\n     remotes/upstream/no_ipv6\r\n\r\n \r\n#. sync local with remote upstream\r\n\r\n   .. code-block:: bash\r\n\r\n    git pull upstream develop\r\n\r\n#. push local to remote origin\r\n\r\n   .. code-block:: bash\r\n\r\n    git push origin\r\n\r\n\r\n\r\nhow to set the git commit editor\r\n======================================\r\n\r\n.. code-block:: bash\r\n\r\n   git config --global core.editor \"vim\"\r\n", "source_format": "rst", "revision_number": 17, "created": 1368971398000}, {"id": "f3c13688-2f95-11f1-96d1-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\nif this is your first commit/push:\r\n\r\n.. code-block:: bash\r\n\r\n git push origin master\r\n \r\nelse:\r\n\r\n.. code-block:: bash\r\n\r\n git push\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\n|\r\n\r\nGo on vacation for 1 week\r\n Your local and origin repos now appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n|\r\n\r\n#. Tell your local repo about the upstream repo\r\n\r\n   .. code-block:: bash\r\n\r\n    git remote add upstream https://github.com/saltstack/salt.git\r\n    git fetch upstream\r\n\r\n#. view all branches\r\n\r\n   .. code-block:: bash\r\n\r\n    git branch -a\r\n\r\n    * develop\r\n     remotes/origin/0.11\r\n     remotes/origin/0.12\r\n     remotes/origin/0.13\r\n     remotes/origin/HEAD -> origin/develop\r\n     remotes/origin/develop\r\n     remotes/origin/master\r\n     remotes/origin/no_ipv6\r\n     remotes/upstream/0.11\r\n     remotes/upstream/0.12\r\n     remotes/upstream/0.13\r\n     remotes/upstream/develop\r\n     remotes/upstream/master\r\n     remotes/upstream/no_ipv6\r\n\r\n \r\n#. sync local with remote upstream\r\n\r\n   .. code-block:: bash\r\n\r\n    git pull upstream develop\r\n\r\n#. push local to remote origin\r\n\r\n   .. code-block:: bash\r\n\r\n    git push origin\r\n\r\n\r\n\r\nhow to set the git commit editor\r\n======================================\r\n\r\n.. code-block:: bash\r\n\r\n   git config --global core.editor \"vim\"\r\n", "source_format": "rst", "revision_number": 16, "created": 1368971351000}, {"id": "f3c12ef0-2f95-11f1-92b5-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\nif this is your first commit/push:\r\n\r\n.. code-block:: bash\r\n\r\n git push origin master\r\n \r\nelse:\r\n\r\n.. code-block:: bash\r\n\r\n git push\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\n|\r\n\r\nGo on vacation for 1 week\r\n Your local and origin repos now appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n|\r\n\r\n#. Tell your local repo about the upstream repo\r\n\r\n   .. code-block:: bash\r\n\r\n    git remote add upstream https://github.com/saltstack/salt.git\r\n    git fetch upstream\r\n\r\n#. view all branches\r\n\r\n   .. code-block:: bash\r\n\r\n    git branch -a\r\n\r\n    * develop\r\n     remotes/origin/0.11\r\n     remotes/origin/0.12\r\n     remotes/origin/0.13\r\n     remotes/origin/HEAD -> origin/develop\r\n     remotes/origin/develop\r\n     remotes/origin/master\r\n     remotes/origin/no_ipv6\r\n     remotes/upstream/0.11\r\n     remotes/upstream/0.12\r\n     remotes/upstream/0.13\r\n     remotes/upstream/develop\r\n     remotes/upstream/master\r\n     remotes/upstream/no_ipv6\r\n\r\n \r\n#. sync local with remote upstream\r\n\r\n   .. code-block:: bash\r\n\r\n    git pull upstream develop\r\n\r\n#. push local to remote origin\r\n\r\n   .. code-block:: bash\r\n\r\n    git push origin", "source_format": "rst", "revision_number": 15, "created": 1367927767000}, {"id": "f3c12731-2f95-11f1-8017-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\ngit push origin master\r\n\r\nHow to add upstream master\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\n|\r\n\r\nGo on vacation for 1 week\r\n Your local and origin repos now appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n|\r\n\r\n#. Tell your local repo about the upstream repo\r\n\r\n   .. code-block:: bash\r\n\r\n    git remote add upstream https://github.com/saltstack/salt.git\r\n    git fetch upstream\r\n\r\n#. view all branches\r\n\r\n   .. code-block:: bash\r\n\r\n    git branch -a\r\n\r\n    * develop\r\n     remotes/origin/0.11\r\n     remotes/origin/0.12\r\n     remotes/origin/0.13\r\n     remotes/origin/HEAD -> origin/develop\r\n     remotes/origin/develop\r\n     remotes/origin/master\r\n     remotes/origin/no_ipv6\r\n     remotes/upstream/0.11\r\n     remotes/upstream/0.12\r\n     remotes/upstream/0.13\r\n     remotes/upstream/develop\r\n     remotes/upstream/master\r\n     remotes/upstream/no_ipv6\r\n\r\n \r\n#. sync local with remote upstream\r\n\r\n   .. code-block:: bash\r\n\r\n    git pull upstream develop\r\n\r\n#. push local to remote origin\r\n\r\n   .. code-block:: bash\r\n\r\n    git push origin", "source_format": "rst", "revision_number": 14, "created": 1363717921000}, {"id": "f3c11ee7-2f95-11f1-bee3-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\ngit push origin master\r\n\r\nHow to add upstream master\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\n|\r\n\r\nGo on vacation for 1 week\r\n Your local and origin repos now appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n|\r\n\r\n#. Tell your local repo about the upstream repo\r\n\r\n   .. code-block:: bash\r\n\r\n    git remote add upstream https://github.com/saltstack/salt.git\r\n    git fetch upstream\r\n\r\n#. view all branches\r\n\r\n   .. code-block:: bash\r\n\r\n    git branch -a\r\n\r\n    * develop\r\n     remotes/origin/0.11\r\n     remotes/origin/0.12\r\n     remotes/origin/0.13\r\n     remotes/origin/HEAD -> origin/develop\r\n     remotes/origin/develop\r\n     remotes/origin/master\r\n     remotes/origin/no_ipv6\r\n     remotes/upstream/0.11\r\n     remotes/upstream/0.12\r\n     remotes/upstream/0.13\r\n     remotes/upstream/develop\r\n     remotes/upstream/master\r\n     remotes/upstream/no_ipv6\r\n\r\n \r\n#. sync local with remote upstream\r\n\r\n   .. code-block:: bash\r\n\r\n    git pull upstream develop\r\n\r\n#. push local to remote origin\r\n\r\n   .. code-block:: bash\r\n\r\n    git push origin develop", "source_format": "rst", "revision_number": 13, "created": 1363717693000}, {"id": "f3c1176f-2f95-11f1-afbd-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\ngit push origin master\r\n\r\nHow to add upstream master\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\n|\r\n\r\nGo on vacation for 1 week\r\n Your local and origin repos now appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n|\r\n\r\n#. Tell your local repo about the upstream repo\r\n\r\n   .. code-block:: bash\r\n\r\n    git remote add upstream https://github.com/saltstack/salt.git\r\n    git fetch upstream\r\n\r\n#. view all branches\r\n\r\n   .. code-block:: bash\r\n\r\n    git branch -a\r\n\r\n    * develop\r\n     remotes/origin/0.11\r\n     remotes/origin/0.12\r\n     remotes/origin/0.13\r\n     remotes/origin/HEAD -> origin/develop\r\n     remotes/origin/develop\r\n     remotes/origin/master\r\n     remotes/origin/no_ipv6\r\n     remotes/upstream/0.11\r\n     remotes/upstream/0.12\r\n     remotes/upstream/0.13\r\n     remotes/upstream/develop\r\n     remotes/upstream/master\r\n     remotes/upstream/no_ipv6\r\n\r\n \r\n#. sync local with remote upstream\r\n\r\n   .. code-block:: bash\r\n\r\n    git merge upstream/develop\r\n\r\n#. push local to remote origin\r\n\r\n   .. code-block:: bash\r\n\r\n    git push origin develop", "source_format": "rst", "revision_number": 12, "created": 1363696135000}, {"id": "f3c10fb6-2f95-11f1-a9e1-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\ngit push origin master\r\n\r\nHow to add upstream master\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\n|\r\n\r\nGo on vacation for 1 week\r\n Your local and origin repos now appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n|\r\n\r\n#. Tell your local repo about the upstream repo\r\n\r\n   .. code-block:: bash\r\n\r\n    git remote add upstream https://github.com/saltstack/salt.git\r\n    git fetch upstream\r\n\r\n#. view all branches\r\n\r\n   .. code-block:: bash\r\n\r\n    git branch -a\r\n\r\n    * develop\r\n     remotes/origin/0.11\r\n     remotes/origin/0.12\r\n     remotes/origin/0.13\r\n     remotes/origin/HEAD -> origin/develop\r\n     remotes/origin/develop\r\n     remotes/origin/master\r\n     remotes/origin/no_ipv6\r\n     remotes/upstream/0.11\r\n     remotes/upstream/0.12\r\n     remotes/upstream/0.13\r\n     remotes/upstream/develop\r\n     remotes/upstream/master\r\n     remotes/upstream/no_ipv6\r\n\r\n \r\n#. get synced up with\r\n\r\n   .. code-block:: bash\r\n\r\n    git merge upstream/master", "source_format": "rst", "revision_number": 11, "created": 1363695943000}, {"id": "f3c107e8-2f95-11f1-96d2-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\ngit push origin master\r\n\r\nHow to add upstream master\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\n|\r\n\r\nGo on vacation for 1 week\r\n Your local and origin repos now appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n|\r\n\r\n#. Tell your local repo about the upstream repo\r\n\r\n   .. code-block:: bash\r\n\r\n    git remote add upstream https://github.com/saltstack/salt.git\r\n    git fetch upstream\r\n     # should create a bunch more branches, to view:\r\n    git branch -a\r\n\r\n\r\n", "source_format": "rst", "revision_number": 10, "created": 1363695662000}, {"id": "f3c0fff7-2f95-11f1-bab0-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\ngit push origin master\r\n\r\nHow to add upstream master\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\n|\r\n\r\nGo on vacation for 1 week\r\n Your local and origin repos now appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n|\r\n\r\n#. Tell your local repo about the upstream repo\r\n\r\n   .. code-block:: bash\r\n\r\n    git remote add upstream https://github.com/saltstack/salt.git\r\n\r\n\r\n", "source_format": "rst", "revision_number": 9, "created": 1363691663000}, {"id": "f3c0f750-2f95-11f1-95fb-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\ngit push origin master\r\n\r\nHow to add upstream master\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\nGo to vacation for 1 week\r\n Your local and origin repositories appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n#. Tell your local repo about the upstream repo\r\n\r\n   .. code-block:: bash\r\n\r\n    git remote add upstream https://github.com/saltstack/salt.git\r\n\r\n\r\n", "source_format": "rst", "revision_number": 8, "created": 1363691244000}, {"id": "f3c0ef5c-2f95-11f1-b2e7-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\ngit push origin master\r\n\r\nHow to add upstream master\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n    cd salt\r\n\r\n#. make some changes to source code and push to remote origin (your github fork)\r\n   \r\n   .. code-block:: bash\r\n\r\n    git add .\r\n    git commit\r\n    git push\r\n\r\n#. perform a pull-request using github gui\r\n\r\nGo to vacation for 1 week\r\n Your local and origin repositories appear out-of-date.  Sync them by performing a fast-forward or merge with upstream.\r\n\r\n\r\n", "source_format": "rst", "revision_number": 7, "created": 1363691062000}, {"id": "f3c0e822-2f95-11f1-b74f-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\ngit push origin master\r\n\r\nHow to add upstream master\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n\r\nexample using salt repo\r\n-------------------------------\r\n\r\n#. create a remote fork on github\r\n\r\n   press the fork button when logged in\r\n\r\n#. clone the remote fork to your local host\r\n\r\n   .. code-block:: bash\r\n\r\n    cd ~/git\r\n    git clone https://github.com/russellballestrini/salt.git\r\n\r\n\r\n", "source_format": "rst", "revision_number": 6, "created": 1363690339000}, {"id": "f3c0e03b-2f95-11f1-adb9-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set a local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\ngit push origin master\r\n\r\nHow to add upstream master\r\n\r\n\r\n\r\nBasic github workflow\r\n============================\r\n\r\nupstream\r\n original remote github repo, read-only\r\n\r\n only way to change this repo is to ask for a merge using a pull-request\r\n\r\norigin\r\n forked remote github repo, read-write\r\n\r\n push you changes here and perform pull requests \r\n\r\nlocal\r\n cloned local, read-write\r\n\r\n make changes and push to origin \r\n\r\n pull changes from upstream, perform merges and fast forwards to keep sync'd\r\n", "source_format": "rst", "revision_number": 5, "created": 1363690151000}, {"id": "f3c0d739-2f95-11f1-aee5-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n\r\nHow to push to remote master\r\n================================\r\n\r\ngit push origin master\r\n ", "source_format": "rst", "revision_number": 4, "created": 1351856190000}, {"id": "f3c0cbbe-2f95-11f1-9ead-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --local user.email \"fox@localhost\" \r\n\r\n git config --global user.name \"foxhop\"\r\n git config --global user.email \"foxhop@foxhop.net\"\r\n ", "source_format": "rst", "revision_number": 3, "created": 1351855338000}, {"id": "f3c0c0c6-2f95-11f1-9165-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set local repo or global username\r\n=======================================\r\n\r\n.. code-block:: bash\r\n\r\n git config --local user.name \"fox\"\r\n git config --global user.name \"foxhop\"", "source_format": "rst", "revision_number": 2, "created": 1351855175000}, {"id": "f3c0b3b4-2f95-11f1-b540-e86a64d24d78", "node_id": "f3bfddd6-2f95-11f1-9b7d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Set local repo or global username\r\n=======================================\r\n\r\ngit config --local user.name \"fox\"\r\ngit config --global user.name \"foxhop\"", "source_format": "rst", "revision_number": 1, "created": 1351855141000}], "count": 18}