Move more Git notes to CONTRIBUTING.md

This commit is contained in:
Andrew Schwartzmeyer 2016-01-21 13:06:51 -08:00
parent c9e4320223
commit 7061c87eb2
2 changed files with 21 additions and 18 deletions

View file

@ -1,15 +1,33 @@
# Contributing to Project Magrathea
## Rules
**Do not commit code changes to the master branch!**
**Read the documentation on [submodules][]!**
**Do not commit submodule updates accidentally!**
Don't forget to commit early and often!
## New to Git?
**DO NOT COMMIT TO THE MASTER BRANCH**
**Do not commit submodule updates accidentally**
If you're new to Git, learn the following commands: `checkout`, `branch`,
`pull`, `push`, `merge`.
Use GitHub's [Hello World][] to learn how to create a feature branch, commit
changes, and issue a pull request.
The user name and email must be set in order to commit changes:
```sh
git config --global user.name "First Last"
git config --global user.email "alias@microsoft.com"
```
[submodules]: https://www.git-scm.com/book/en/v2/Git-Tools-Submodules
[hello world]: https://guides.github.com/activities/hello-world/
[guides]: https://guides.github.com/activities/hello-world/
## Rebase and Fast-Forward Merge Pull Requests

View file

@ -10,17 +10,6 @@ Install [Git][], the version control system.
sudo apt-get install git
```
If you're new to Git, work through
the [guides][] until you are familiar with the following commands: `checkout`,
`branch`, `pull`, `push`, `merge`. Don't forget to commit early and often!
The user name and email must be set to do just about anything with Git.
```sh
git config --global user.name "First Last"
git config --global user.email "alias@microsoft.com"
```
If you do not have a preferred method of authentication, enable the storage
credential helper, which will cache your credentials in plaintext on your
system, so use a [token][].
@ -29,14 +18,10 @@ system, so use a [token][].
git config --global credential.helper store
```
**Read the documentation on [submodules][]!**
See the [Contributing Guidelines](CONTRIBUTING.md) for more Git information.
[Git]: https://git-scm.com/documentation
[guides]: https://guides.github.com/activities/hello-world/
[token]: https://help.github.com/articles/creating-an-access-token-for-command-line-use/
[submodules]: https://www.git-scm.com/book/en/v2/Git-Tools-Submodules
### Download source code