mdbs99/git-work

Define an user main branch

mdbs99 opened this issue · 4 comments

Let's give a possibility to user could define its own main branch (default is master).
Sometimes we could not push our changes into the main branch because this could be dangerous. So, because that, the user could define its own main branch.

This parameter should be stored in .gitconfig file with an option to user choose globally or not.

This main branch will be used in done, push, and release commands.

It's better using git config instead create a new command.

So, these are the commands:

  • set info: git config git-work."branch".master master
  • get info: git config --get git-work.branch.master

This should be part of git-work.sh install as per #6.

Well, maybe we can give to users just a command to set the main branch when them want like this:
git work config branch.master mybranch

@mdbs99 To fix this issue, I need you merge PR #3 first.

@fabriciofx don't worry about this issue. When PR #3 is merged, I may do this issue.
Please, give attention in #10.