Skip to content

Merges feature branch into main branch as one commit

License

Notifications You must be signed in to change notification settings

walaskir/git-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-merge.sh

Merges feature branch into main branch as one commit.

How it works

  • it finds main branch, which can be master or main
  • checks if there are all changes commited in main and feature branch
  • finds last common commit between main branch and feature branch
  • copies all changes from feature branch to main branch
  • push changes in main branch to remote repository

Install

  • clone this repo to your local machine
  • make symlink to git-merge.sh in your $PATH

TODO

  • standard output redirect to log file
  • allow delete log file when no errors
  • failed merge via git stash pop should be handled

About

Merges feature branch into main branch as one commit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages