-
commit: will execute
git add .git commit -m "message"andgit push origin masterall at once (useful for quickly updating a repository)- arg1 = commit message
- arg2 = files to add
- arg3 = branch name
- arg4 = remote name all arguments are optional
commit
executes these commands:
git add . git commit -m "automated commit git push origin master
commit "edited README" README.mdexecutes these commands:
git add README.md git commit -m "edited README" git push origin mastercommit "edited main" main.py boyer-dev upstreamexecutes these commands:
git add main.py git commit -m "edited main" git push upstream boyer-dev -
libclean: will delete the
distbuildandegg-infodirectories made when creating a python package (useful for quickly cleaning up enviroment after creating a python package) -
update: will execute
sudo apt update && sudo apt upgrade(useful for quickly updating and upgrading computer in one command)
Note that chrome, update, and web only run in linux
git clone https://github.com/asboyer2/bash-scripts.git- add
/path/to/bash-scripts/binto your$PATHvariable in your `.bashrc- ex:
export PATH=/usr/root/bash-scripts/bin:$PATH
- ex:
- Source your
.bashrcusing the command. .bashrc