You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This menu option is analogous to the [git status](https://git-scm.com/docs/git-status) command and prints the status of the repository to the output.
5
+
6
6
## Settings
7
7
This option opens the GUI's settings page project specific git-source-control settings can be configured. This includes the settings that were configured when running:
8
8
```
@@ -12,31 +12,49 @@ d ##class(SourceControl.Git.API).Configure()
12
12
This page also includes the mappings configurations.
13
13
14
14
Any changes made to the settings must be saved using the 'Save' button in order to take effect.
15
+
15
16
## Launch Git UI
16
17
This menu option opens the git-source-control GUI. From here commit messages can be written, files can be staged and committed, branches can be viewed.
18
+
17
19
## Add
18
20
This menu option is analogous to the [git add](https://git-scm.com/docs/git-add) command. It will perform 'git add' on the currently open file, adding it to the files that can be staged.
21
+
19
22
## Remove
20
23
This menu option will only appear if the currently open file has been already added using the 'Add' menu option. It undoes the effect of adding the file, similar to running [git reset](https://git-scm.com/docs/git-reset) on a specific file.
24
+
21
25
## Push to remote branch
22
26
This option pushes the commits in the branch to the remote repository. This exhibits the same behavior as the [git push](https://git-scm.com/docs/git-push) command.
27
+
23
28
## Push to remote branch (force)
24
29
This option forcibly pushes the commits in the branch to the remote repository. This is potentially destructive and may overwrite the commit history of the remote branch. This exhibits the same behavior as the [git push --force](https://git-scm.com/docs/git-push) command.
30
+
25
31
## Fetch from remote
26
-
Much like the [git fetch](https://git-scm.com/docs/git-fetch) command, this option fetches the most recent versions of the branch without merging that version into the local copy of the branch.
32
+
This option first [fetches](https://git-scm.com/docs/git-fetch) the most recent version of the branch without merging that version into the local copy of the branch. It will then list all files modified between the current version and the remote version.
33
+
34
+
This also has the effect of refreshing the list of all remote branches and pruning any references that no longer exist in the remote. (see: [git fetch --prune](https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---prune))
35
+
27
36
## Pull changes from remote branch
28
37
Much like the [git pull](https://git-scm.com/docs/git-pull) command, this menu option pulls the most recent version of the current branch from a remote source, merging the changes into the local copy.
38
+
29
39
## Sync
30
40
This option will synchronize a local repo with the remote repo. The sync operation is only enabled in basic mode. It encapsulates the pattern of fetching, pulling, committing and then pushing into one menu action. If there is no defined remote repository, it will simply commit any uncommitted files.
41
+
31
42
## Create new branch
32
43
This menu option creates a new branch in the repository for changes to be committed to. It also changes the current branch to be the created branch. This mimics the behavior of the [git checkout -b](https://git-scm.com/docs/git-checkout) command.
44
+
33
45
## Check out an existing branch
34
-
This option changes the currently checkout branch to a chosen branch. This mimics the behavior of the [git checkout](https://git-scm.com/docs/git-checkout) command.
46
+
This option refreshes the local list of branches available in the upstream repository, and then changes the currently checkedout branch to the provided branch. This mimics the behavior of the [git fetch --prune](https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---prune) and [git checkout](https://git-scm.com/docs/git-checkout) commands.
47
+
48
+
If the desired branch does not exist in your local or in the remote, then you will receive the "Selected branch does not exist" error message.
49
+
35
50
## Export all
36
51
This option exports class files to the local file tree at the configured location.
52
+
37
53
## Export all (force)
38
54
This option exports all class files regardless of whether they're already up to date in the local file tree or not.
55
+
39
56
## Import all
40
57
This option imports the versions of the files that are found in the configured directory into the project. Files that are out of date or the same as the files in the project won't be imported.
58
+
41
59
## Import all (force)
42
-
This menu option behaves similarly to the regular import but forces the files to be imported regardless of whether the on-disk version is the same or older.
60
+
This menu option behaves similarly to the regular import but forces the files to be imported regardless of whether the on-disk version is the same or older.
0 commit comments