GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Habibullah339/devops-git-workflow: GitHub repository demonstrating a comprehensive Git workflow.It showcases modern DevOps practices for efficient and quality-driven development, and contains sending webhook notification on pull, push and merge to a webhook URL(pre-commit and post-commit).

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
app.js
app.js
 
 
result.png
result.png
 
 

Repository files navigation

Devops-git-workflow

1- Create a new respository and clone it

2- Create a new branch using git branch feature/add-login

3- In branch feature/add-login created a demo file named app.js and added some random content in it

4- Created a pre-commit file in directory .git/hooks/pre-commit and added the following rules like "NO trailing whitespace allowed" with this script

#!/bin/bash if git diff --cached --check; then : else echo "ERROR: Trailing whitespace detected. Please remove it before committing." exit 1 fi if git diff --cached | grep -E '^(+|-).*console\.log' -q; then echo "ERROR: Debugging statements (e.g., console.log) detected. Please remove them before committing." exit 1 fi exit 0

5- Pushed features branch to remote github repo

6- Created a pull request from feature/add-login branch to repo

7- Accepted the Pull request.

8- Implemented post-commit hook to send webhook message

9- Setup webhook to observe pull and push requests.

Final Webhook Message

About

GitHub repository demonstrating a comprehensive Git workflow.It showcases modern DevOps practices for efficient and quality-driven development, and contains sending webhook notification on pull, push and merge to a webhook URL(pre-commit and post-commit).

Topics

devopsgitpost-commitpre-commit-hookwebhooks

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.