- On GitHub, navigate to the main page of the repository.
- In your repository, browse to the folder where you want to create a file.
- Above the file list, click Create new file.
- In the file name field, type the name and extension for the file. To create subdirectories, type the / directory separator.
- On the Edit new file tab, add content to the file.
- To review the new content, click Preview.
- At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
- 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.
- Click Propose new file.
More...
|
- In your repository, browse to the file you want to edit.
- In the upper right corner of the file view, click the pencil-icon to open the file editor.
- On the Edit file tab , make any changes you need to the file.
- Above the new content, click Preview changes.
- At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
- 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.
- Click Propose file change.
More...
|
- In your repository, browse to the file you want to rename.
- In the upper right corner of the file view, click the pencil-icon to open the file editor.
- 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.
- At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
- 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.
- Click Propose file change.
More...
|
- In your repository, browse to the file you want to move.
- In the upper right corner of the file view, click the pencil-icon to open the file editor.
- 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.
- At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
- 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.
- Click Propose file change.
More...
|
- Browse to the file in your repository that you want to delete.
- At the top of the file, click the 'Trash-bin'.
- At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
- 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.
- Click Propose file change.
|