Bored of writing the same line of code over and over again to commit then try out the below method for Linux to make it easier to commit.
Git Add, commit and push all in one Linux script
- Create a new file “gitadd.sh”.
( mine is under git folder, Full path with file : ~/git/gitadd.sh )
- Copy the code below in the file “gitadd.sh”
3. Change the default branch name to your’s so you don’t have to change branch too
3. Run the script