Bash script to connect git to github repo
Please check you have the code saved where you want it to pull or push 1.) and 2.) at the bottom of the script please change to match your needs to or you will save over your progress dont fuck it up :x.
Before running the script, make sure to replace "/path/to/local/repo" with the actual path to your local repository directory, and "https://github.com/your-username/your-repo.git" with the URL of your GitHub repository.
To run the script, follow these steps:
Open a text editor and paste the script into a new file.
Save the file with a .sh extension, such as git_connect.sh.
Open a terminal and navigate to the directory where you saved the script.
Make the script executable by running the command:
chmod +x git_connect.sh
Run the script by executing:
./git_connect.sh
The script will execute the necessary Git commands to connect your local repository to the GitHub repository.
Make sure you have Git installed and configured on your Ubuntu system before running the script.
You can check for git in the ubuntu terminal by entering: "git --version" then pressing enter shoul display your version of git in the gnome terminal.