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
Copy file name to clipboardExpand all lines: docs/menu-items.md
+35-12Lines changed: 35 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
## Status
4
4
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
5
6
+
6
7
## Settings
7
8
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
9
```
@@ -13,48 +14,70 @@ This page also includes the mappings configurations.
13
14
14
15
Any changes made to the settings must be saved using the 'Save' button in order to take effect.
15
16
17
+
16
18
## Launch Git UI
17
19
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
20
21
+
19
22
## Add
20
23
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
24
25
+
22
26
## Remove
23
27
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
28
25
-
## Push to remote branch
29
+
30
+
## Push to Remote Branch
26
31
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
32
28
-
## Push to remote branch (force)
33
+
34
+
## Push to Remote Branch (force)
29
35
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
36
31
-
## Fetch from remote
37
+
38
+
## Fetch from Remote
32
39
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
40
34
41
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
42
36
-
## Pull changes from remote branch
43
+
44
+
## Pull Changes from Remote Branch
37
45
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
46
47
+
39
48
## Sync
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.
49
+
This option will synchronize the current branch checked out a local repo with the same branch in a remote repo. It encapsulates the pattern of fetching, pulling, committing, and pushing into one menu action.
50
+
- If you are on the Default Merge Branch, then Sync only pulls the latest commits from the remote. Committing is disallowed on the Default Merge Branch.
51
+
- If there is no defined remote repository, it will simply commit all staged files.
52
+
- If there is a Default Merge Branch defined, then sync attempts to perform a [rebase](https://git-scm.com/docs/git-rebase) onto the latest Default Merge Branch from the remote.
53
+
- If the rebase were to result in merge conflicts, then this action is aborted so the system is not left in an inconsistent state.
41
54
42
-
## Create new branch
55
+
The sync operation is only enabled in basic mode.
56
+
57
+
58
+
## Create New Branch
43
59
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
60
45
-
## Check out an existing branch
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.
61
+
In basic mode, this option first checks out the Default Merge Branch (if defined) and pulls that branch from the remote before creating the new branch.
62
+
63
+
64
+
## Check Out an Existing Branch
65
+
This option refreshes the local list of branches available in the upstream repository, and then changes the currently checked out 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
66
48
67
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
68
50
-
## Export all
69
+
70
+
## Export All
51
71
This option exports class files to the local file tree at the configured location.
52
72
53
-
## Export all (force)
73
+
74
+
## Export All (Force)
54
75
This option exports all class files regardless of whether they're already up to date in the local file tree or not.
55
76
56
-
## Import all
77
+
78
+
## Import All
57
79
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
80
59
-
## Import all (force)
81
+
82
+
## Import All (Force)
60
83
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