diff --git a/DevOps/Git/Delete_a_branch.md b/DevOps/Git/Delete_a_branch.md new file mode 100644 index 0000000..82d1dae --- /dev/null +++ b/DevOps/Git/Delete_a_branch.md @@ -0,0 +1,19 @@ +--- +categories: + - DevOps +tags: [git] +--- + +# Delete a branch + +### Locally + +```bash +git branch -d +``` + +### Remote + +```bash +git push origin --delete +``` diff --git a/DevOps/Git/Rename_a_branch.md b/DevOps/Git/Rename_a_branch.md new file mode 100644 index 0000000..1e7cdb4 --- /dev/null +++ b/DevOps/Git/Rename_a_branch.md @@ -0,0 +1,19 @@ +--- +categories: + - DevOps +tags: [git] +--- + +# Rename a branch + +### In local development + +```bash +git branch -m +``` + +### Update the remote + +```bash +git push origin -u +``` diff --git a/scripts/auto_save.sh b/scripts/auto_save.sh index 8162ed5..d25a220 100755 --- a/scripts/auto_save.sh +++ b/scripts/auto_save.sh @@ -19,5 +19,5 @@ fi git pull git add . -git commit -q -m "Last Sync: $(date +"%Y-%m-%d %H:%M:%S")" +git commit -q -m "Autosave: $(date +"%Y-%m-%d %H:%M:%S")" git push -q