Collaboration via CLI
In the open-source version of Bruno, Git operations are performed manually using the terminal or tools like VSCode's Git features.
This includes:
Below is a step-by-step guide on how to use Git with Bruno in the open-source version.
Initializing Git in a Collection
To add your collection to version control, you need to initialize a Git repository in the directory where your .bru files are stored using the following steps:
- 
Navigate to the Bruno Collection Location: - Navigate to the location on your PC where you created the Bruno collection, and copy the path. [^1]
 
- 
Change directory in Terminal: - 
Run the following command in the terminal: cd path/to/your/bruno/collection
 
- 
- 
Initialize Git: - 
Run the following command to initialize Git in the Bruno collection directory: git init
 
- 
Adding and Committing Changes
After initializing the Git repository, you can add and commit changes to your collection.
- 
Creating a New HTTP Request in Bruno App - Hover over the collection name in the Bruno app.
- Click on the three dots, then click on "New Request."
- Type in the name of the request and populate the URL field with https://example.com.
- After populating the fields with appropriate values, click on the "Create" button, or you can press ENTER/RETURN on your keyboard to create the request. This will create a new .brufile with the name that you just specified.
 
- 
Adding and committing the changes - 
Stage all the changes made inside the collection: git add .
- 
Commit the changes: git commit -m "Created my first Bruno request 🐶"
 
- 
Pushing and Pulling Changes
To share your changes with others, you can push and pull your commits to/from a remote repository.
- 
Pushing changes git push -u origin main
- 
Pulling changes git pull origin main