Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 3.75 KB

File metadata and controls

55 lines (33 loc) · 3.75 KB

Creating a Commit

Committing

While changing the files in a branch, which has been generated based on an Issue, in your local copy of the repository, you might have saved them several times.
After completing at least a subtask of the Issue, which is underlying the branch, you should create a commit.

A commit captures the currently staged changes in such a way that you can return to this status again later, if necessary.
Of course, it makes sense to properly define this status by a meaningful description (see chapter about Formulating Commit Messages).

For committing changes, click on the source control symbol (the branch icon in the menu bar to the left).

CreatingCommit1

If you would like to commit all changes, you would have to click the check mark box on the top.

CreatingCommit2

Please, enter a meaningful commit message.
Particularly, the headline is very important.
Please, regard the rules defined in the chapter about Formulating Commit Messages.

CreatingCommit3

After completing the commit message, press Ctrl+Enter.
Now, you created a record of your local repository, which you could later return to, if it would be necessary.

Synchronizing with GitHub (Pushing)

Please, keep in mind that your commit has been stored just locally.
If you would like to benefit from backup and sharing with the project team, you would now have to upload your commit by synchronizing your local copy of the repository with GitHub.
To upload your changes press the "Sync Changes" button:

vsc_10

If it would be your first commit to the repository, you would be asked to peform an authentication.
The proceedure is well guided by the GitHub website; just provide the requested data.

vsc_11

After authentication, VSCode will try to push the changes to the remote repository.

It would not succeed, if you would neither be owner nor Contributor to the addressed repository.
In such case you would have to address your Push to a Fork (copy) of the original repository in your own GitHub account (see also Forking Workflow).

Even if you are Contributor to the addressed repository, you need permission to Push into the addressed branch.
This might not be given, in case you forgot to create a feature branch from the Issue (see Processing an Issue) before starting to work.

vsc_12

As you are failing to push your commit into develop or main branch, you can try saving your contribution by following the steps that are described beginning with "Starting to actually work on the Issue" in Processing an Issue. In most cases, changes don't get lost.

If you are Contributor (as the ApplicationOwner you certainly are) and properly created a feature branch before starting to make changes, the latest state of the feature branch is now publicly available on GitHub.

<- Back to Processing an Issue - - - Up to Preparing for Specifying Applications - - - Ahead to Completing an Issue ->