A project using isomorphic-git to initialize a Git repository, commit changes, and display commit logs.
This project demonstrates how to use the isomorphic-git library to perform basic Git operations such as initializing a repository, committing changes, and displaying commit logs. The project is set up to work with Node.js.
- Node.js installed on your machine
- Basic understanding of Git
-
Clone the repository:
git clone https://github.com/your-username/your-project-name.git
-
Navigate to the project directory:
cd your-project-name -
Install the dependencies:
npm install
-
Run the application:
npm start
-
The application will initialize a Git repository in the
my-git-repodirectory, commit changes, and display the commit log in the console.
-
Repository Initialization: The repository is initialized using the
initRepofunction.startLine: 8 endLine: 32
-
Committing Changes: Changes are staged and committed using the
commitChangesfunction.startLine: 36 endLine: 65
-
Logging Commits: After each commit, the commit history is printed to the console.
startLine: 54 endLine: 62
- Update the
user.nameanduser.emailinapp.jsto your own Git user information. - Modify the commit message in the
commitChangesfunction as needed.
This project is licensed under the ISC License.
Your Name