-
commit: will execute
git add .
git commit -m "message"
andgit push origin master
all 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.md
executes these commands:
git add README.md git commit -m "edited README" git push origin master
commit "edited main" main.py boyer-dev upstream
executes these commands:
git add main.py git commit -m "edited main" git push upstream boyer-dev
-
libclean: will delete the
dist
build
andegg-info
directories 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/bin
to your$PATH
variable in your `.bashrc- ex:
export PATH=/usr/root/bash-scripts/bin:$PATH
- ex:
- Source your
.bashrc
using the command. .bashrc