GitHub

From HaFrWiki
Revision as of 09:27, 29 June 2017 by Hjmf (talk | contribs) (Created page with "{{TOCright}} == Github flow == At GitHub, we use our products every day and have developed a workflow to collaborate on projects. To make it work for teams regardless of the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Github flow

At GitHub, we use our products every day and have developed a workflow to collaborate on projects. To make it work for teams regardless of their size or technical expertise, we made sure each step in our workflow can be completed within a web-based interface. [1][2]

  1. Create a branch from the repository, Delete a branch from the repository. [3]
  2. Create, edit, rename, move, or [[#Delete file|delete] files.
  3. Send a pull request from your branch with your proposed changes to kick off a discussion.
  4. Make changes on your branch as needed. Your pull request will update automatically.
  5. Merge the pull request once the branch is ready to be merged.
  6. Tidy up your branches using the delete button in the pull request or on the branches page.

Create a branch

  1. On GitHub, navigate to the main page of the repository.
  2. Click the branch selector menu.
  3. Type a unique name for your new branch.
  4. Press Enter.

Delete a branch

  1. On GitHub, navigate to the main page of the repository.
  2. Above the list of files, click NUMBER branches.
  3. Scroll to the branch that you want to delete, then click the trash-bin.

Create, edit, rename, move, or delete

Create file

Edit file

Rename file

Move file

Delete file

  1. On GitHub, navigate to the main page of the repository.
  2. In your repository, browse to the folder where you want to create a file.
  3. Above the file list, click Create new file.
  4. In the file name field, type the name and extension for the file. To create subdirectories, type the / directory separator.
  5. On the Edit new file tab, add content to the file.
  6. To review the new content, click Preview.
  7. At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
  8. Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is master, you should choose to create a new branch for your commit and then create a pull request.
  9. Click Propose new file.

More...

  1. In your repository, browse to the file you want to edit.
  2. In the upper right corner of the file view, click the pencil-icon to open the file editor.
  3. On the Edit file tab , make any changes you need to the file.
  4. Above the new content, click Preview changes.
  5. At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
  6. Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is master, you should choose to create a new branch for your commit and then create a pull request.
  7. Click Propose file change.

More...

  1. In your repository, browse to the file you want to rename.
  2. In the upper right corner of the file view, click the pencil-icon to open the file editor.
  3. In the filename field, change the name of the file to the new filename you want. You can also update the contents of your file at the same time.
  4. At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
  5. Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is master, you should choose to create a new branch for your commit and then create a pull request.
  6. Click Propose file change.

More...

  1. In your repository, browse to the file you want to move.
  2. In the upper right corner of the file view, click the pencil-icon to open the file editor.
  3. In the filename field, change the name of the file using these guidelines:
    • To move the file into a subfolder, type the name of the folder you want, followed by /. Your new folder name becomes a new item in the navigation breadcrumbs.
    • To move the file into a directory above the file's current location, place your cursor at the beginning of the filename field, then either type ../ to jump up one full directory level, or type the backspace key to edit the parent folder's name.
  4. At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
  5. Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is master, you should choose to create a new branch for your commit and then create a pull request.
  6. Click Propose file change.

More...

  1. Browse to the file in your repository that you want to delete.
  2. At the top of the file, click the 'Trash-bin'.
  3. At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
  4. Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is master, you should choose to create a new branch for your commit and then create a pull request.
  5. Click Propose file change.


Send a pull request

See https://help.github.com/articles/about-pull-requests

Make changes

Just do the necessary changes.

Merge

See https://help.github.com/articles/merging-a-pull-request


Tidy up

See https://help.github.com/articles/deleting-and-restoring-branches-in-a-pull-request

See also

top

Reference

top

  1. Help-GitHub Articles, Help-GitHub-Flow
  2. Guides-GitHub Flow Guides
  3. Help-GitHub Categories, Managing Files.