borne
v1.0.0
Published
A tool for Git and GitHub interaction via CLI.
Downloads
71
Readme
Borne 🐙
Welcome to Borne This project allows you to interact with Git and GitHub from the terminal in a simple and efficient way. Use this CLI to manage your repositories, branches, and commits without leaving the command line.
Features 🌟
- Set the working directory
- Create new repositories
- Manage branches: create, switch, and delete
- Make commits and view history
- Set remote repositories
- Perform
pull
andpush
operations
Installation 🛠️
- Install Borne globally using npm:
npm install -g borne
Usage 🚀
After installation, use the brn command followed by various subcommands to interact with Git repositories.
Available Commands
brn clone [repoUrl] [dir] Clone a repository
brn create-repo [repoName] Create a new repository
brn add [files] Add files to the Git index (staging area)
brn commit [message] Commit changes with a message
brn push `<origin>` `<branch>` Push changes to a remote repository
brn pull Pull changes from a remote repository
brn status Show the status of the repository
brn log Show commit history
brn create-branch [branchName] Create a new branch
brn switch-branch [branchName] Switch to a branch
brn delete-branch [branchName] Delete a branch
brn set-remote [name] [url] Set a remote repository
brn set-dir [directory] Set working directory for Git commands
brn config-user Configure Git user name and email
brn exit Exit the program
Examples
Here are some examples of how to use the brn commands:
- Clone a repository:
brn clone [https://github.com/user/repo.git](https://github.com/user/repo.git) my-project
- Create a new repository:
brn create-repo my-new-project
- Add files to staging:
brn add .
- Commit changes:
brn commit "Initial commit"
- Push changes:
brn push origin main
- Create and switch to a new branch:
brn create-branch feature-branch
brn switch-branch feature-branch
- Show repository status:
brn status
- View commit history:
brn log
- Set a remote repository:
brn set-remote origin [https://github.com/user/repo.git](https://github.com/user/repo.git)
- Set working directory:
brn set-dir /path/to/your/project
Configuration
Before using Borne, configure your Git user name and email:
brn config-user
You'll be prompted to enter your name and email address.
Contribution 🤝
We welcome contributions to Borne! If you'd like to contribute:
- Fork the repository
- Create your feature branch (git checkout -b feature/AmazingFeature)
- Commit your changes (git commit -m 'Add some AmazingFeature')
- Push to the branch (git push origin feature/AmazingFeature)
- Open a Pull Request
Please make sure to update tests as appropriate and adhere to the project's coding standards.
License
Your feedback and contributions help make Borne better for everyone. Don't hesitate to reach out!
Happy coding with Borne! May your repositories always be in order and your commits crystal clear. 🚀🐙