Committing Changes to Git Version Control

From Appmethod Topics
Jump to: navigation, search

Go Up to Git Integration in the IDE


Committing a file or project saves it to the local repository.

To commit a specific file

  1. In the Project Manager, right-click the file that you want to commit.
  2. In the context menu, select Version Control > Git > Commit. The Commit (Git) pane appears in the main window of the IDE.
  3. Enter a comment for the log in the Commit field. You can see (or select) comments from previous committed versions.
  4. Click Commit. The version control system displays results in the Messages View.


To commit a directory or an entire project

  1. In the Project Manager, right-click the folder or the project that you want to commit.
  2. In the context menu, select Git > Commit.
  3. Under the Commit command in the context menu, select one of the following subcommands:
    • From Repository Root searches up the directory tree to find the last directory managed by the same repository as the project file and then adds to the commit pane all the files in that directory and below.
    • From Project Directory adds to the commit pane all files in the project directory and below.
  4. The Commit (Git) pane appears in the main window of the IDE. Select the files you want to commit in the Commit to: Location field.
  5. Enter a comment for the log in the Commit field. You can see comments from previous committed versions.
  6. Click Commit. The version control system displays results in the Messages View.

Notes:

  • To push your local changes to your remote repository in Git, push your changes to a remote repository.
  • The Commit dialog box does not display renamed files. You need to click Show unversioned files and select the renamed files so they are added to the commit.

See Also