Git: Difference between revisions
Jump to navigation
Jump to search
(Submitting Pull Request Workflow added) |
|||
Line 1: | Line 1: | ||
UAS has Git repositories on github: https://github.com/Unallocated | UAS has Git repositories on github: https://github.com/Unallocated | ||
== Contributing to a Project | == Contributing to a UAS GitHub Project == | ||
* Submit Pull Request | === Cloning the Repository and Submitting Pull Request Workflow === | ||
* Sign In to GitHub | |||
* Navigate to the UAS Project | |||
* Click "Fork" in the top right | |||
This creates a clone of the UAS project in your GitHub account's namespace. | |||
* Clone your GitHub Fork to your local PC | |||
For example, the Tektite user on GitHub clones the Fork with the following git clone command | |||
<pre> | |||
git clone https://github.com/Tektite/RandomScripts.git /c/UAS.g/RandomScripts.f | |||
</pre> | |||
* Create, Change, Add, Commit - then Push back to GitHub | |||
<pre> | |||
... work on stuff ... | |||
git add -v . | |||
git commit -m "i did this" | |||
git push | |||
</pre> | |||
* Submit Pull Request in GitHub | |||
<pre> | <pre> | ||
Go to your copy again in the web interface | Go to your copy again in the web interface | ||
Click "Pull Request" under commits/branches/releases/contributors bar | Click "Pull Request" under commits/branches/releases/contributors bar | ||
Someone with write access to the repo can then review it for inclusion | Someone with write access to the repo can then review it for inclusion | ||
</pre> | </pre> | ||
== Projects == | == Projects == | ||
* Create repository for various services. | * Create repository for various services. | ||
** Example: place to put latest code for [[Member_Check-In_System]] | ** Example: place to put latest code for [[Member_Check-In_System]] |
Revision as of 18:46, 17 March 2014
UAS has Git repositories on github: https://github.com/Unallocated
Contributing to a UAS GitHub Project
Cloning the Repository and Submitting Pull Request Workflow
- Sign In to GitHub
- Navigate to the UAS Project
- Click "Fork" in the top right
This creates a clone of the UAS project in your GitHub account's namespace.
- Clone your GitHub Fork to your local PC
For example, the Tektite user on GitHub clones the Fork with the following git clone command
git clone https://github.com/Tektite/RandomScripts.git /c/UAS.g/RandomScripts.f
- Create, Change, Add, Commit - then Push back to GitHub
... work on stuff ... git add -v . git commit -m "i did this" git push
- Submit Pull Request in GitHub
Go to your copy again in the web interface Click "Pull Request" under commits/branches/releases/contributors bar Someone with write access to the repo can then review it for inclusion
Projects
- Create repository for various services.
- Example: place to put latest code for Member_Check-In_System