Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/max-wittig/gl-file-replacer
Mirror of https://gitlab.com/max-wittig/gl-file-replacer
https://github.com/max-wittig/gl-file-replacer
gitlab golang
Last synced: about 1 month ago
JSON representation
Mirror of https://gitlab.com/max-wittig/gl-file-replacer
- Host: GitHub
- URL: https://github.com/max-wittig/gl-file-replacer
- Owner: max-wittig
- License: mit
- Created: 2021-12-26T11:01:07.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-26T11:01:17.000Z (about 3 years ago)
- Last Synced: 2024-10-13T11:13:03.550Z (2 months ago)
- Topics: gitlab, golang
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gl-file-replacer
Tool to replace files in repositories in Gitlab via the merge request flow.
Can be used to automate the file replacements in many repositories.
## Usage
```
Usage of ./gl-file-replacer:
-branch string
The branch name to use. Optional. Defaults to refactor-change-file-
-file string
Specify the location of the local file
-force
Force branch creation
-m string
The commit message
-repo string
The location of the GitLab repo. E.g. 'gitlab-org/gitlab'
-repo-file string
The repository file to replace
```### Example to replace the README.md in the repository with a local one
```sh
gl-file-replacer -repo max-wittig/gl-file-replacer -repo-file README.md -file ../other-repo/README.md -m "chore: update readme"
```### Build
Install on your platform
```sh
make install
```Build for all available platforms
```sh
make build-all
```## Planned features
* Regex file replace mode