Nit is a simple version control system built using Node.js. (Step Brother of Git)
To get started, make sure you have latest version of Node.js installed. Then, follow these steps:
-
Clone this repository.
git clone https://github.com/srijit2002/Nit.git
-
Navigate to the project directory in your terminal.
cd Nit
-
Install the required dependencies by running:
npm install
-
Run the following command
npm link
Initialize an empty Nit repository in your project directory.
nit init
View or set configuration options for your Nit repository.
nit config <key> [value]
Add changes in the working directory to the staging area. You can specify multiple file paths to add.
nit add <paths...>
Capture a snapshot of the project's currently staged changes with a commit message.
nit commit <message>
Display the state of the working directory and the staging area
nit status
Display changes between the working directory and the index. You can specify multiple space separated file paths.
nit diff [paths...]
Display the contents of the commit logs.
nit log
Revert a file to the last committed version or a specific commit using the -c option.
nit checkout <filepaths...>
nit checkout -c <commitId> <filepaths...>