These are basic instructions on how to use the Git/GitHub GUI in Brackets.
If you want more detailed information on how to use Brackets to manage your Git repositories on GitHub, this is a nice online reference.
-
Make sure the Git extension for Brackets is installed.
-
Before opening Brackets create an empty directory where you would like to repository to go. Name this folder,
wg_WGFAST
.
-
Open Brackets, go to
File → Open Folder…
, and navigate to thewg_WGFAST
folder you just created. -
Open the Git extension by clicking on its icon on the right side of the screen.
-
Go to your forked repository in GitHub and copy the HTTPS address to the clipboard. See Clone the forked repository to your local computer in the Suggested Workflow file.
-
In Brackets, add the HTTPS address to "Enter Git URL of the repository you want to clone:".
Your user name will replace "erinann" in the GitHub address.
Do not enter your GitHub username and password if your credentials are managed elsewhere.
-
Choose Create new remote.
-
You can name your new remote anything you would like, but Git parlance would suggest calling it,
upstream
. -
Add the URL to the
ices-eg/wg_WGFAST
repository.
https://github.com/ices-eg/wg_WGFAST
When you want to get updates from the upstream remote repository (ices-eg/wg_WGFAST
):
1. Make sure you are on the master
branch.
2. Change the remote to upstream
.
3. Click on the Fetch
button.
Note: You will also have to use the Pull
button. I have not done this yet as no pull requests have been merged to master
in the upstream repository. Will update soon.
-
Click on the drop down arrow next to the branch icon. The default branch is
-
Select Create new branch… .
-
Make sure the origin branch is
master
then add a name for your working branch.
NAMING your branch - You can name your branch anything you want, but please name it something descriptive. In the example below the branch is named with the author’s initials and a SHORT description of the branch’s purpose.
Open a file and edit it.
-
Stage files by clicking on the check box next to the file name or stage all files by clicking on the check box next the
Commit
button.
-
Commit files by clicking on the
Commit
button.
Add a commit message, and clickOK
. If you need to add more information than 50 characters will allow, click on theEXTENDED
button in the upper, right corner to extend the text box.
-
A dialog box will appear.
Make sure you are pushing to the correct branch of your remote repository, which will most likely be the current tracking branch (the one that is checked out).
You do not have to fill out your username and password if your credentials are managed elsewhere.
ClickOK
.
-
If there are no conflicts you will get a successful response. Click,
OK
.