Commit and push changes to Git repository
Commit CtrlShift0G,CtrlShift0C
Push CtrlShift0G,CtrlShift0P
After you've added new files to the local Git repository, or modified files that are already under Git version control and you are happy with their current state, you can share the results of your work. This involves committing them locally to record the snapshot of your repository to the project history, and then pushing them to the remote repository so that they become available to others.
When a user attempts to perform an operation with a GitHub repository, such as push, pull, or fetch. The token input field appears, the user needs to click the provided link to generate a GitHub token. Fleet pre-fills suggested scopes for the token.
Open the Git tool or press CtrlShift0G,CtrlShift0C.
If you want to group the list of changed files by directory, click the Settings icon and select Group by | Directory.
In the Changed files list, select the files you want to commit.
Enter the commit message and click Commit.
You can use AI Assistant to help you generate commit messages.
To generate a commit message for pending changes, select the changes to stage, then click the AI icon in the commit message field.
AI Assistant can also help you understand the changes within a commit.
To explain the changes within a commit, right-click it in the Git History tool, then select Explain commit.
If you want to modify the latest commit, use the Amend Commit option.
In the Git tool, select the modified files containing the changes you want to add to the previous commit.
Click the Settings icon and select the Amend Commit option.
Modify the pre-filled commit message of the previous commit if necessary.
Click the Amend commit button.
Before pushing your changes, sync with the remote and make sure your local copy of the repository is up to date to avoid conflicts.
note
The Push button is grayed out until you commit your changes.
From the main menu, choose Git | Push or press CtrlShift0G,CtrlShift0P.
In the Git Push dialog that opens, click Push.
To push the changes to the remote branch, you now need to log in to your GitHub, GitLab, or Bitbucket account.
For GitLab and Bitbucket, enter your credentials and click Log in.
For GitHub, enter your personal access token and click Log in. If you do not have a token, follow the Generate link to generate a new personal access token in your GitHub settings.
note
When you attempt to perform an operation with a GitHub repository, such as pushing, pulling, or fetching, a token input field appears. Click the provided link to generate a GitHub token. Fleet pre-fills the minimum required scopes for the token to simplify the process.
After the successful login Fleet pushes the local changes to the remote branch.
Thanks for your feedback!