Script that check if there are any repository unpushed and clean it before to leave
- Just clone the repository where you like.
git clone https://github.com/Gogiu23/Git.sh.git
2, Get inside the directory
cd Git.sh
- Once did that be sure to change the permission
chmod 774 *.sh
chmod 774 Dependencies/*.sh
- Execute the main archive Git.sh and done.
Just executing the script as
./Git.shIt will start the program to run
At the beginning it will ask where to save the log file, which it will be the records of your session.
And then the program it will ask to choose between Authomatic or Manually commits.
Here the programm will search in every folder from your $HOME all the repository that changes from the last commit wasn't staged and commits properly.
Pay attention that all the commits will be pushed without ask the user any confirmation
Manual committing will ask at the user to see the:
-
git diff -
stage the changes with
git add -
commits the changes with
git commit- Here the programm will ask about the message in the commit. If ignored, the date will be the message in the commit
-
And finally
git push
The programm will iterate every folder untill there will be none changes unstaged


