Skip to content

Commit e1d6c32

Browse files
Merge pull request #2 from Nageswari-droid/git-convex-documentation
Git convex documentation and language file
2 parents 8de0bdb + e2576b8 commit e1d6c32

File tree

2 files changed

+54
-164
lines changed

2 files changed

+54
-164
lines changed

DOCUMENTATION.md

Lines changed: 30 additions & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -1,271 +1,137 @@
1-
21
# Introduction
3-
4-
52
GitConvex is a web app for managing your git repositories. It is supported by Linux, Mac OS and Windows. The [latest version](https://github.com/neel1996/gitconvex-package/releases) of GitConvex supports git features such as initializing and tracking a git repo, staging and unstaging changes, committing changes, pushing changes to selected remote and so on.
63
The main goal of this platform is to act as a web based alternative for Github desktop, but we are still in the starting stages, so we are not completely there yet (baby steps, right?)
74
## Requirements
8-
1. Node JS (Version 12.0+)
9-
10-
2. Git (Version 2.20+)
11-
12-
13-
5+
1. [Node JS](https://nodejs.org/en/) (Version 12.0+)
6+
2. [Git](https://git-scm.com/) (Version 2.20+)
147
## Download Options
15-
16-
178
- **Option-1:** Directly clone the repo from github
18-
199
`git clone https://github.com/neel1996/gitconvex-package`
2010

21-
22-
2311
- **Option-2** Downloading the zip file from the [releases](https://github.com/neel1996/gitconvex-package/releases).
2412

25-
26-
27-
- **Option-3** GitConvex is also available on `npm`. Install the package globally to run it directly from the command line,
28-
29-
30-
13+
- **Option-3** GitConvex is also available on `npm`. Install the package globally to run it directly from the command line
3114
`npm i -g @itassistors/gitconvex`
3215

33-
34-
3516
This will install **gitconvex** as a global module and it can be started straight away from the command line with `gitconvex` command
36-
37-
38-
3917
```
40-
4118
$ gitconvex
42-
4319
44-
4520
INFO: Checking for config file
46-
4721
INFO: Config file is present
48-
4922
INFO: Reading from config file /usr/lib/node_modules/@itassistors/gitconvex/env_config.json
50-
5123
GitConvex API connected!
52-
5324
54-
5525
Checking data file availability...
56-
5726
INFO: Data file /usr/lib/node_modules/@itassistors/gitconvex/database/repo-datastore.json is present and it will be used as the active data file!
58-
59-
60-
6127
You can change this under the settings menu
62-
63-
64-
6528
Gitconvex is running on port 9001
66-
67-
68-
6929
Open http://localhost:9001/ to access gitconvex
70-
7130
```
72-
73-
74-
75-
7631
## Setup
7732

78-
If either download **Option-1** or **Option-2** is followed, then the following steps need to be followed to setup GitConvex
79-
80-
81-
33+
If either download **Option-1** or **Option-2** is opted, then the following steps need to be followed to setup GitConvex
8234
1. For installing all dependencies,
83-
8435
`` $npm install ``
8536

86-
87-
88-
2. To start a server, either use normal node command
89-
37+
2. To start the server, either use normal node command
9038
`` $node server.js ``
91-
92-
93-
9439
or use `pm2` by downloading it from npm - `npm i -g pm2` and start the module by executing the following command,
95-
9640
`pm2 start ecosystem.config.js`
9741

98-
99-
10042
## Features available
101-
10243
- Visualizing basic repo stats such as active branch, active remotes, number of files tracked etc
103-
10444
- Tracking modified files
105-
10645
- Creating new branches (provided there are no diverging changes)
107-
10846
- Initializing git inside a new repo and adding it to the platform tracker on the go
109-
11047
- File difference tracker with syntax highlighting for the [supported languages](language).
111-
11248
- Commit log viewer
113-
11449
- Basic git operations such as staging, un-staging, committing and pushing to remote repo.
11550

116-
117-
11851
## How to use
11952

120-
121-
12253
### Left Pane Menu
12354

124-
125-
12655
- **Repositories** - To check tracked files changes, line based changes with syntax highlighting and git operations (staging, unstaging, commiting changes and pushing changed to remote)
127-
128-
- **Settings** - To check and edit internal data file, to remove a repo from gitconvex and to update the active port
129-
130-
- **Help** - Includes documentation link and various options to report an issue or to submit feedback
131-
132-
56+
- **Settings** - To check and edit internal data file, to remove a repo from gitconvex and to update the active port.
57+
- **Help** - Includes documentation link and various options to report an issue or to submit feedback.
13358

13459
### Adding a new repo
135-
13660
- Use "+" at the bottom right corner to add a repo.
137-
13861
![Picture1](https://user-images.githubusercontent.com/65342122/87232632-0eff7480-c3de-11ea-8a9f-f0a6cf9cd6ee.png)
13962

140-
<br>
141-
14263
- Enter repo name and paste the repo path. If the folder is not a git repo then check the "*Check this if the folder is not a git repo*" checkbox to initialize git.
143-
14464
![Picture2](https://user-images.githubusercontent.com/65342122/87232637-16268280-c3de-11ea-9f9d-708c5a3eb668.png)
14565

146-
147-
14866
- The newly added repo will be displayed as a card in the dashboard
149-
150-
![Picture3](https://user-images.githubusercontent.com/65342122/87232640-1aeb3680-c3de-11ea-8751-e47e5f64c8a1.png)
67+
![Picture17](https://user-images.githubusercontent.com/65342122/87243016-d13b3400-c44f-11ea-88ec-c4d14cbfbf97.png)
15168

15269
### Repo Details
153-
15470
- Click on the repo card to get the following details about the repo
155-
15671
```
157-
15872
- The list of branches
159-
16073
- Commit logs
161-
16274
- Latest commit
163-
16475
- Active branch and available local branches
165-
16676
- Remote repo URL and host
167-
16877
- Files and folders tracked by git
169-
17078
```
171-
17279
The repo detail view also provides features for performing the following git operations,
173-
17480
```
175-
17681
- Adding a new branch
177-
17882
- Pulling changes from remote
179-
18083
- Fetching changes from remote
181-
18284
- Adding a new remote repo
183-
18485
```
185-
186-
187-
18886
![Picture4](https://user-images.githubusercontent.com/65342122/87232642-1f175400-c3de-11ea-8ead-80cd5ab4c37c.png)
18987

19088
![enter image description here](https://user-images.githubusercontent.com/65342122/87232671-71587500-c3de-11ea-8ff5-25fb95b08553.png)
19189

192-
193-
19490
#### Add new branch
195-
196-
197-
19891
![Picture5](https://user-images.githubusercontent.com/65342122/87232643-23437180-c3de-11ea-9d9e-7e3c3789c32e.png)
19992

20093
Note: In a newly initialized git repo, the newly added branch will be considered by git only after a initial commit
20194

202-
203-
204-
- Next, left pane consists of repositories, settings and help. In "repositories" choose a saved repo. This module has three sections : File view, Git difference and Git operation. The header portion shows chosen repo name, active branch, number of tracked files and commits.
205-
206-
- File view shows the new/Untracked/Modified/deleted files.
95+
## Repositoru Menu
96+
- The **Repository** menu has three sections : File view, Git difference and Git operation, which will be displayed based on the selected repo.
20797

98+
### File View
99+
- File view shows the New/Untracked/Modified/Deleted files.
208100
![Picture6](https://user-images.githubusercontent.com/65342122/87232644-29d1e900-c3de-11ea-9adc-03fb4e690882.png)
209101

210-
- Git operations module consists of three basic git operations( Stage all changes, commit changes, push to remote ). Below this file status is display and the files can be staged with add action or click on "stage all changes" to stage all the untracked files from the chosen repo.
211-
212-
213-
102+
### Git Operations
103+
- Git operations module consists of three basic git operations( Stage all changes, commit changes, push to remote ). Below this file status is display and the files can be staged with add action or click on "stage all changes" to stage all the files from the chosen repo.
214104
![Picture7](https://user-images.githubusercontent.com/65342122/87232645-30f8f700-c3de-11ea-8ddb-52f4d5ec7140.png)
215105

216-
- After add operation all staged files can be removed immediately if you wish to, else ignore it. Reload the page to see the difference in "File View".
217-
106+
- The staged files can be removed individually or it can be removed all at once.
218107
![Picture8](https://user-images.githubusercontent.com/65342122/87232658-51c14c80-c3de-11ea-95e1-b9bbeeac82bb.png)
219108

220-
- All staged files can be committed using "Commit changes" module. After commit changes reload the page to see active branch name, number of tracked files and number of commits.
221-
222-
223-
109+
- The staged changes can be comitted using the **Commit changes** option. This will display a pop-up with all the staged files and it requires a commit message to successfully commit the changes.THe commit messages can either be a single line message or a multi-line message
224110
![Picture9](https://user-images.githubusercontent.com/65342122/87232659-56860080-c3de-11ea-9bc4-a19ad727b101.png)
225111

226-
- After **commit changes** operation,
227-
228-
229-
230-
![Picture10](https://user-images.githubusercontent.com/65342122/87232661-5c7be180-c3de-11ea-82b7-104792c2e3ec.png)
231-
232-
233-
234-
- "Push to remote" module pushes all commits to the remote host. If there is no remote in the chosen repo then ignore this module. After the push to remote is completed, check the remote host to see the pushed folder/file.
235-
236-
with Remote(Git Hub)
237-
112+
- **Push to remote** option pushes all commits to the selected remote host. The pop-up displayed will display the commits which are in queue to be pushed to the remote repository
238113
![Picture11](https://user-images.githubusercontent.com/65342122/87232662-61409580-c3de-11ea-8ad7-61c3871f0a4d.png)
239114

240-
If you try to "push to remote" without having a remote host, "push failed" error message will be displayed.
241-
242-
243-
115+
This section will let you know if the selected remote is not valid or if the push operation fails
244116
![Picture12](https://user-images.githubusercontent.com/65342122/87232666-6867a380-c3de-11ea-9903-5ea12200e994.png)
245-
246117

247-
In "Git Difference" click on the modified file(s) to see the difference.
118+
### Git Difference
248119

249-
![Picture13](https://user-images.githubusercontent.com/65342122/87232669-6d2c5780-c3de-11ea-9739-f8181e4d0901.png)
250-
251-
- "Stage all changes" and "commit changes" for applying a change.
252-
253-
120+
In "Git Difference" click on the modified file(s) to see the difference. The platform has syntax highlighting available for a limited set of [languages](LANGUAGES.md)
121+
![Picture21](https://user-images.githubusercontent.com/65342122/87243040-11021b80-c450-11ea-8775-d52dcc7f57e1.png)
254122

123+
## Settings
255124
- Settings in the left pane has three sections( Server data file, saved repos, Active GitConvex port number ).
125+
![Picture19](https://user-images.githubusercontent.com/65342122/87243003-a4871c80-c44f-11ea-9d1a-8350bdfb0da8.png)
256126

257-
258-
259-
![Picture15](https://user-images.githubusercontent.com/65342122/87232673-75849280-c3de-11ea-9d01-fe3479282561.png)
260-
261-
262-
263-
- Server data file stores repo details. The data file can be updated. The data file must be an accessible JSON file with read / write permissions set to it. Also make sure you enter the full path for the file. E.g: /opt/my_data/data-file.json
127+
- Server data file stores repo details such as the repo path, timestamp and the unique ID assigned to each repo. The data file must be an accessible JSON file with read / write permissions set to it. Also make sure you enter the full path for the file. E.g: /opt/my_data/data-file.json
128+
- In the saved repos section, added repo(s) can be deleted permanently from GitConvex.
264129

265-
- In the saved repos section, added repo(s) can be deleted permanently from GitConvex.
130+
>Note that, this will only remove the repo from gitconvex records andit will not perform an actual folder delete operation
266131
267-
- The port number can be updated but make sure to restart the app and to change the port in the URL after updating it.
132+
- The port number can be updated to an available alternate port. Make sure that the port is not in use. The app needs to be restarted for the port change to take effect.
268133

269-
- Visit help section if you're facing an issue or need any help. If you have any queries discuss it in "Discord" or report an issue in GitHub.
134+
## Help
270135

271-
![Picture16](https://user-images.githubusercontent.com/65342122/87232674-79b0b000-c3de-11ea-904a-c6a02c4d15f5.png)
136+
- Visit help section if you're facing an issue or need any help. If you have any queries or feedback, then discuss it in "Discord" or report an issue in GitHub.
137+
![Picture20](https://user-images.githubusercontent.com/65342122/87242999-8f11f280-c44f-11ea-9a81-f6cde7b4b419.png)

LANGUAGES.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Languages
2+
js : JavaScript <br>
3+
java : Java<br>
4+
py : Python<br>
5+
c : C<br>
6+
cpp : C++<br>
7+
go : Go<br>
8+
rust : Rust<br>
9+
ts : TypeScript<br>
10+
dart : Dart<br>
11+
php : PHP<br>
12+
html : Markup<br>
13+
json : JSON<br>
14+
xml : Markup<br>
15+
yaml : YAML<br>
16+
yml : YML<br>
17+
rb : Ruby<br>
18+
jsx : JSX<br>
19+
kt : Kotlin<br>
20+
ktm : Kotlin<br>
21+
kts : Kotlin<br>
22+
cs : C#<br>
23+
vb : Visual Basics<br>
24+
css : CSS<br>

0 commit comments

Comments
 (0)