From ae6191713480eeaeddc806a3ee038f049ff30427 Mon Sep 17 00:00:00 2001 From: Ishan Soni Date: Thu, 15 Dec 2016 02:32:34 -0500 Subject: [PATCH] update githubissues.md (fixes #395) (fixes #379) (#401) --- pages/githubissues.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/githubissues.md b/pages/githubissues.md index 2770c46791..91c6a8dfb6 100644 --- a/pages/githubissues.md +++ b/pages/githubissues.md @@ -8,13 +8,16 @@ First, you will need to open an issue within the right repository ([upstream rep After this, you will then research the possible solutions or ideas on how to address the issue and write a comment with this information, as you can see [here](https://github.com/open-learning-exchange/open-learning-exchange.github.io/issues/15). Someone else will hopefully provide input (as Dogi did here) and then you can move ahead with making the proposed changes. -Every time you start to work on an issue you need to create a branch to keep your work on various issues separate from each other. Before you create your branch, sync your repo following the process in the [previous step](http://open-learning-exchange.github.io/#!pages/gitandrepositories.md). Then use `git checkout -b name_of_your_new_branch --track origin/name_of_your_new_branch` to create and switch to a new branch. +Every time you start to work on an issue you need to create a branch to keep your work on various issues separate from each other. Before you create your branch, sync your repo following the process in the [previous step](http://open-learning-exchange.github.io/#!pages/gitandrepositories.md). Then use `git checkout -b name_of_your_new_branch` to create and switch to a new branch on your local repository. + +**TIP**: The default branch in your repository is called master. Keeping the master branch clean of any changes is a good practice so if you make any changes you dont want, you may revert back. Now you can go and make the proposed changes to your local files. **NOTE**: It's important that you are on the new branch, make sure you are on the correct branch with `git checkout branch-name` before committing. Use `git branch` to make sure you are on the correct branch. -After you are done making your changes use the command `git status`. If the list of files changed only includes those you wish to modify, use the command `git add .` (The '.' is part of the command.) Otherwise you can also choose only certain changes to include by using `git add ...` Now that you have selected the files you wish to include, use the commands `git commit -m "commit message"` and `git push origin name_of_your_new_branch` to save your changes and push them to your Github. +####Creating a commit +After you are done making your changes use the command `git status`. If the list of files changed only includes those you wish to modify, use the command `git add .` (The '.' is part of the command.) Otherwise you can also choose only certain changes to include by using `git add ...` Now that you have selected the files you wish to include, use the commands `git commit -m "commit message"` and `git push -u origin name_of_your_new_branch` to save your changes and push them to your Github (for any further commit on the same branch after the first one, you can just use `git push`). You can view your changes by going to https://rawgit.com/YourUserName/YourUserName.github.io/YourBranchName/#!index.md and viewing the page(s) you have changed. If everything looks correct, you are ready to create a pull request. Please remember to include the issue it is solving (for example, if your pull request fixes the issue number 320, then add `#320` to your pull request).