This script automates the process of updating, committing, and pushing changes to a Git repository. It performs the following tasks:
- Adds all files recursively to the Git repository.
- Retrieves the name of the current executable file.
- Commits all changes to the Git repository with the executable file name as the commit message.
- Pushes the committed changes to the remote Git repository.
- Rust programming language and Cargo (Rust's package manager) installed on your system.
-
Clone or download the repository to your local machine.
-
Navigate to the directory containing the script.
-
Open a terminal or command prompt.
-
Run the following command to compile and execute the script:
cargo run --releaseThis command will compile the script in release mode and execute it.
If you encounter any issues while running the script, please ensure that:
- You have Git installed on your system and properly configured.
- You have write permissions to the Git repository.
- There are changes in the repository to commit.